Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language (Puppet or Ruby DSL)

learn more… | top users | synonyms

4
votes
5answers
1k views

Alerting on Failed Puppet Status

I can view "Currently failing" nodes in the puppet dashboard web GUI, and even drill into it to see what policy has gone awry. I can also see if nodes are not reporting. Is there any way I could get ...
3
votes
1answer
201 views

Is it worth it to do revision control/puppet/etc. on a single-server-setup?

After reading Using revision control for server configuration files?, I decided to install etckeeper on my server. However, it's a one-server setup, so I only have one physical machine and no load ...
0
votes
0answers
47 views

Vcsrepo fails with gitlab

I want to pull some gitlab repositories using vcsrepo but for some reason it fails to execute. vcsrepo { "/tmp/repo/update": ensure => present, provider => git, source => ...
21
votes
2answers
15k views

Could not find class, and yet it is there

When doing a puppet agent call from a new image, I'm getting a err: Could not find class custommod error. The module itself is in /etc/puppet/modules/custommod same as all of the other modules we're ...
0
votes
0answers
23 views

Puppet agent unable to connect through Load Balancer

I am currently trying to setup a load balanced puppet infrastructure. I am using puppetserver for the puppet server(s) and puppet agent 3.7.3 for the clients. Currently I have four servers setup in ...
1
vote
2answers
51 views

Command file 'nagios.cmd#015' does not exist issue if passivecheck is sent to NSCA daemon

Introduction As /usr/local/nagios/etc/nsca.cfg is replaced by the default config if opsview has been restarted the reference to this file that resides in /etc/init.d/opsview was changed to ...
5
votes
4answers
8k views

Puppet: Test if Resource is defined, or create it

I've been trying to figure out a way to test if a resource is already defined in another file, and if not create it? A quick example: if File[$local_container] { alert("Testing - It existed ...
1
vote
0answers
28 views

How to make Supervisord read bash environment variables [closed]

I am using Supervisord to run my java application, which requires some environment variables for configuration. I am setting the environment variables in /etc/environment export ...
0
votes
2answers
27 views

On a Windows system, where should I put the gemrc file so that Puppet can find it?

Running Puppet Enterprise 3.7. The Agent machine is a Windows 2012 Server R2 box. Question: Where do I put the gemrc file so that Puppet's internal ruby can find it? On Linux, the place to put the ...
0
votes
1answer
39 views

Best practices for puppet module management with software development life cycle approach?

How do people organize their Puppet manifests and modules in your source code repository? I am not seeing any obvious way to implement changes in Puppet in a phased manner on a single Puppet master. ...
1
vote
1answer
12 views

How to access to the environment name in Puppetfile

I'm using R10K with Puppet. The Puppetfile is basically DSL: Because the Puppetfile format is actually implemented using a Ruby DSL any valid Ruby expression can be used. Ref: ...
1
vote
1answer
34 views

Puppet for Patch Management

I am thinking of using Puppet for massive patch management. The way to go with this, based on some research, is to create a class and apply it wherever you need, like in the following case: class ...
0
votes
1answer
1k views

How to add a puppet module to Gepetto, when using git?

I followed some "best practices" from Puppet 2.7 Cookbook and created agent - puppet master framework, with git cvs. Unfortunately, the book doesn't cover Gepetto, so I am forced to improvise that ...
2
votes
2answers
360 views

How can I use Puppet/Augeas to manage exim dc_local_interfaces configuration?

I need to set the value for "dc_local_interfaces" to "127.0.0.1;::1", but the semi-colon prevents this. This is my definition in Puppet: augeas { "/etc/exim4/update-exim4.conf.conf": lens => ...
2
votes
2answers
36 views

Puppet master (3.6.2) error on signing puppet client (2.7.25)

I was hoping someone might have an answer for this: While upgrading overall from Centos6 to Centos7 I'm handling the upgrade for puppet's version. Our new puppet server's version is 3.6.2 and I'd ...
5
votes
2answers
54 views

Can Puppet run a shell script (that it downloads from the master) without saving it?

I have a step in a Puppet module that roughly does the following to set up some application keys: file { '/root/setup_app_keys.sh': ensure => file, owner => 'root', group => 'root', ...
0
votes
1answer
26 views

Puppet working with nested hashes and arrays

I want to checkout several SVN projects and I need to be able to choose the directory names for each branch or trunk. Now I want to check out the SVN project called svn_name in the folder service_dir ...
0
votes
1answer
23 views

Understanding exported resources in Puppet

In order to understand exported resources in Puppet the following documentation was read. After reading the documentation the understanding was that exported resources consist of declaring and ...
0
votes
1answer
29 views

Puppet and agent server with same host name but different private keys

I am trying to use puppet as follows in Amazon AWS: I deploy an instance which has hostname "server.example.com", which launches the puppet agent on boot and gets an initial software payload. I then ...
4
votes
3answers
7k views

Adding an existing user to a group with puppet

Is it possible to add an existing user to a group with puppet 2.7.18? We have two modules, each one defines one class : module "user" creates all users, including user foo and user bar. module ...
0
votes
1answer
21 views

With directory environments enabled, does the form of a Puppet URL change?

We upgraded to Puppet 3.7 and some things stopped working. Some files that we refer to using puppet URLs are not found by Puppet Enterprise anymore. The biggest change is that we are now using ...
0
votes
0answers
27 views

Sensu/Uchiwa - No 'checks' listed

I've configured Sensu and Uchiwa using Puppet. I have clients reporting in, and raising events when checks fail. I have checks in my server's /etc/sensu/conf.d/checks/ folder, created by Puppet, for ...
0
votes
1answer
42 views

unattended update PCs via foreman

I have recently became responsible for about 50 workstations running Mint Linux 17. The PCs are used for very basic data entry and only require a working browser. Although i'm told the PCs basically ...
2
votes
1answer
35 views

Puppet: how do I run a configtest before restarting a service

Is there a way to run a configtest utility (e.g. apache2ctl -t) before trying to restart a service when one of its configuration files changed? Use case here is that I want to be resilient against ...
0
votes
1answer
21 views

mcollective - different ruby path/environment

How do I tell the mcollective server to use a different ruby path, or otherwise control the ruby environment? I'm running on Centos 6.5, and have installed the ruby193 collection onto the servers and ...
2
votes
2answers
410 views

Puppet package installation on Linux/CentOS

I am new to Puppet - I have been playing around learning the basics. Most of the examples ( except the very basic ones ) that are on the puppet page do not work for me - either some dependency is ...
4
votes
1answer
1k views

How to manually create Puppet CA and certificates?

I am wondering how to manually (using openssl instead of puppet ca command) create CA that would be usable by Puppet? The goal would be to script creation of such CA's to deploy them on multiple ...
1
vote
2answers
30 views

Configuring PAM with Augeas

I am attempting to use Augeas to configure the files in my /etc/pam.d directory in a default Ubuntu 14.04 install. My goal is to find all nodes that have an argument of either 'nullok' or ...
5
votes
4answers
8k views

Puppet: Running shell command when file (or package) is updated

I want to run mysql_tzinfo_to_sql whenever the tzinfo package (on Ubuntu Server) changes. I figured Puppet can take care of this. I thought that either Puppet would react to a change in the package ...
0
votes
2answers
754 views

Install puppet enterprise.30 and accessing the web portal

I am getting the following error after installing Puppet enterprise 3.0. https://puppet.example.com:8140/ The environment must be purely alphanumeric, not '' Is this normal and what I see is a ...
0
votes
0answers
16 views

How to use puppet repository modules (example :Archive) in manifest file

I am trying to install eclipse in vagrant managed virtual machine using Puppet provisioning. I am copying part my eclipse_download.pp file where puppet is throwing an error **Invalid resource type ...
0
votes
0answers
22 views

Copy and rename files matching a pattern

I have this bash script that I would like to translate into puppet: for f in $PROJECT_DIR/config/*.example do cp -n "$f" "${f%\.example}" done Essentially, find all files matching a certain ...
3
votes
0answers
38 views

How should I handle Mint instances with Puppet?

I use Puppet to set up VMs from time to time. Sometimes I run Linux Mint on these VMs. I have a lot of Puppet modules I like to use, but when they check the LSB facts they recoil from the strange ...
0
votes
0answers
90 views

mcollective ping not working

I am facing the below error while setting up mcollective activemq setup on centos, could you please let me know what went wrong in the setup? mco ping The ping application failed to run, use -v for ...
2
votes
1answer
46 views

Puppet ensure file is directory OR link. Or ensure directory only if absent?

2 CentOS servers that I'd like to apply the same manifest to. The manifest creates a user with a custom home directory location under /var/username Problem is on one of the servers /var/username has ...
3
votes
1answer
43 views

Configuring Puppet to set up Cinder with GlusterFS

I've spent quite some time now attempting to configure Puppet so that it will setup Cinder to use GlusterFS as the backend, rather than the LVMISCSI backend, but I haven't had any luck. Versions: ...
-1
votes
2answers
917 views

Could not recieve information from environment production

Im getting this error on my node agent, when i run puppet agent --test err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from environment production source(s) ...
9
votes
2answers
11k views

How to change the polling interval of the Puppet master?

By default, Puppet clients ask for updates every 30 minutes. I would like to change this interval. What is the most convenient way to do it?
1
vote
2answers
816 views

Problem getting puppet to sync custom fact

I am having trouble getting puppet to sync a custom fact. I am using puppet version 0.25.4. The fact is inside a module as described in http://docs.reductivelabs.com/guides/plugins_in_modules.html If ...
4
votes
2answers
195 views

How to get puppet to stop on the first error in a Manifest?

How do you configure puppet to just stop on the first failure instead of continuing on and just spewing errors for the rest of the steps that depends on the first failure?
4
votes
2answers
2k views

Is it possible to use Puppet to ensure multiple files in a directory are present without defining all of them?

I have a couple hundred one-off servers that have different configuration files that need to be present in a directory. Copies of the files reside on the puppet master. Within one of my classes I ...
12
votes
1answer
958 views

Puppet and launchd services?

We have a production environment configured with Puppet, and want to be able to set up a similar environment on our development machines: a mix of Red Hats, Ubuntus and OSX. As might be expected, OSX ...
0
votes
0answers
128 views

puppet xdebug.ini not working

I install xdebug puppet Here is folder structure /myproject Vagrantfile puppet\ xdebug\ files\ xdebug.ini manifests\ init.pp This is ...
0
votes
0answers
11 views

Cobbler doesn't honor remove_old_puppet_certs_automatically parameter

I have setup cobbler with puppet and everything is working fine, except that cobbler does not honor the remove_old_puppet_certs_automatically parameter. I am still in testing phase so I will be ...
1
vote
1answer
28 views

Puppet: How can I decide the order of module loading?

I'm using Puppet in my environment to automatically configure the Linux servers. There are many puppet modules configured and it works like a charm. There's a motivation to allow a specific user ...
4
votes
1answer
206 views

Puppet: New server unable to fetch configuration from puppet, with some ssl error, what could be the reason?

3 machines in the production environment had some HW issue and were decommissioned. The infrastructure team has re-installed them and gave them the same hostnames and IP addresses. On the ...
1
vote
2answers
58 views

Run puppet exec command only if output file has changed

I am using an exec command to run a shell script which modifies certain configuration files of other packages. The exec command is triggered whenever input parameters such as ip addresses, ports or ...
1
vote
0answers
40 views

Could not find terminus puppetdb for indirection facts

I'm attempting to install puppetdb but I'm running into an issue when executing puppet -t. I'm getting: Error: Cached facts for puppet.asc.ohio-state.edu failed: Could not find terminus puppetdb for ...
1
vote
0answers
42 views

PuppetDB: unable to get local issuer certificate

I'm attempting to use puppetdb on but I'm running into some issues. I have a node called puppet. It is the master as well as where I've installed puppetdb. It's also a node that puppet manages. ...
1
vote
1answer
34 views

Cobbler and puppet with multiple clients - best setup?

I have setup a cobbler and puppet and they are working fine (quite). I am still in a testing phase, so all testing are performed on a single client server. However, in the real environment, this ...