Tag Info

Hot answers tagged

4

Don't use Amazon Linux. The Puppet Labs Apache module is not compatible with Amazon Linux. You will need to use one of the distributions which it is compatible with, or create your own Puppet module.


3

You can add the optional channel from the command line by running the command: rhn-channel –add –channel=rhel-x86_64-server-optional-7 You can run this command as root or use sudo.


2

After looking at it with a fresh pair of eyes today, I've found that Facter v1.7.0 includes a fix that classifies Amazon Linux as "RedHat" correctly: https://github.com/puppetlabs/facter/commit/c12d3b6c557df695a7b2b009da099f6a93c7bd31 Now I know why it's being incorrectly reported, I need to know why I'm not getting Facter v1.7.0 installed from the ...


2

The packages are not showing up as updates very probably because of priority settings. You could fix that by: echo -e "[main]\nenabled = 0" > /etc/yum/pluginconf.d/priorities.conf However, Amazon has broken compatibility with RHEL 6 by upgrading Ruby to version 2.0. Installing packages from that repository will very likely break your Puppet and ...


2

Because the F5 is based on Red Hat, you technically can install the puppet agent, but in order to do this, you would have to install the puppet agent itself and ruby which would break the support you would receive from F5, and this is therefore not recommended and best practice would be not to do this. If you have just a one off node, then you should ...


2

You need to add include apt at the top of your class, before the apt::source declaration: the error is saying it can't find apt::things because it doesn't know what the higher scope apt is. The include apt will use various defaults, if you want to change them you'll need to instead use a declaration such as: class { 'apt': always_apt_update => true, ...


2

Update: Have you tried using a puppet module to accomplish this? There's at least one around that claims to be able to install redmine. It might be easier to just change it to fit your needs. You didn't actually tell us how you launch the redmine installation via puppet. Try adding this to your sudoers.d file: Defaults:username !requiretty There ...


2

The Puppetmaster needs to be restarted if the hiera.yaml has been changed The format of the hiera files is important, i.e. two spaces instead of null and --- common.yaml --- classes: - motd instead of classes: - motd If Puppet Environments are enabled the datadir should be configured as follows: /etc/puppet/hiera.yaml :yaml: :datadir: ...


1

You likely need to install the standard library. On your other installation, this might have got pulled in by some other module you installed. After that, use it with include stdlib.


1

The templatedir deprecation is documented in Puppet's reference page. You should look at the generated config: $ puppet config print templatedir --section master You will need to move tempalates to the module's /templates folder. For e.g. modules/example/templates/.


1

What are you describing is generally done by extending the core set of facts on the server. There are two ways of adding additional facts: Custom facts - facts created through ruby code External facts - facts generated by either output from an external script or even a static text-based data source Either way, those facts can be generated programmable ...


1

I stumbled upon the same issue when deleting a user where processes were running. I have tested my solution on our production server and therefore I can provide a valid solution where I create users in a separate class using "ensure" variables. And based upon the variable I decide whether to call the process stop sequence or not as follows: define ...


1

This is not possible at the moment. There was a Puppet issue submitted for it and a fix proposed but does not seem like there's any rush to implement it. As a possible workaround, you could have one template include others: <% @template_array.each do |val| -%> <% scope.function_template(val) %> <% end -%> Forewarning, I have not tested ...


1

See this section for Puppet documentation about customizing collector attributes. Example: File <| |> { owner => 'foo', }


1

You don't use = to pass parameters to a class. => is used for that. = is used to assign values to variables. So that code should be changed to: node 'linuxlab' { include apt apt::unattended_upgrades { origins => $::apt::params::origins, update => '1', download => '1', upgrade ...



Only top voted, non community-wiki answers of a minimum length are eligible