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

learn more… | top users | synonyms

1
vote
1answer
76 views

Using Foreman to install packages

I have an Ubuntu 14.04 server running Foreman and Puppet (as the master), and some other Ubuntu 14.04 machines which are Puppet nodes. I want to use Foreman to make sure the Puppet nodes have certain ...
-1
votes
2answers
54 views

Puppet: How to display calling stack when failing a manifest (or how to get a calling stack at all)?

Suppose I have written a define, and was able to trap the illegal argument combination. How to fail the manifest with a message that comprises at least a resource that included our definition (or even ...
1
vote
2answers
62 views

Puppet: How to enforce file creation in root's home folder?

I'm trying to set a custom .vimrc profile on all servers in the production environment by using Puppet. I wrote the following manifest: class vim { file { "/etc/skel/.vimrc": path => ...
0
votes
1answer
81 views

Install Applications on Windows RDP Servers with Puppet

The scenario is installing Windows applications with Puppet on a Windows RDP server. I have Puppet install the applications without problem, but per the best practice, you're supposed to be in install ...
0
votes
0answers
131 views

mongodb authentication not working in puppet

I used the same connectionstring in the terminal and it's working ok. But from Ruby I get error output when vagrant provision runs mongo admin -u 'vaga' -p 'vaga' --authenticationDatabase admin ...
0
votes
1answer
42 views

Puppet exec type seems to ignore the unless attribute

I have an exec command to change the hostname. I only want to execute that if the hostname is not what it should be: exec { 'update hostname': command => 'sudo hostname VM01', unless => ...
0
votes
1answer
179 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 ...
2
votes
1answer
138 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 => ...
1
vote
2answers
149 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 ...
1
vote
0answers
168 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 ...
1
vote
1answer
78 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: ...
0
votes
2answers
152 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 ...
1
vote
1answer
126 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
137 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. ...
2
votes
2answers
161 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 ...
0
votes
1answer
111 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 ...
5
votes
3answers
274 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
67 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
3answers
93 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 ...
0
votes
1answer
33 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 ...
1
vote
0answers
178 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 ...
2
votes
1answer
55 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 ...
1
vote
2answers
82 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 ...
0
votes
1answer
131 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
1answer
96 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
1answer
75 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
1answer
167 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 ...
0
votes
1answer
78 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 ...
3
votes
1answer
194 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: ...
0
votes
0answers
19 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
39 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 ...
5
votes
1answer
2k views

New server unable to fetch configuration from Puppetmaster due to some ssl error

Three machines in the production environment had some hardware issues and were decommissioned. The infrastructure team has reinstalled them and gave them the same hostnames and IP addresses. On the ...
0
votes
0answers
151 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
401 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. ...
0
votes
1answer
53 views

Cobbler with puppet - slow in installing packages

I have setup cobbler that runs puppet automatically after OS installation. It works fine, except that it takes a while for puppet to install all of the packages. This is still a testing phase, so it ...
1
vote
1answer
51 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 ...
1
vote
2answers
479 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 ...
0
votes
1answer
133 views

Puppet Master attempts to resolve agent hostname

Running puppet agent -t from a non-dns resolvable client dumps out the following from a puppet master running in verbose mode: Error: Could not resolve 10.110.x.xx: no name for 10.110.x.xx (Where ...
1
vote
1answer
644 views

Puppet Dashboard giving “The environment must be purely alphanumeric” error under Passenger

Please refer to this gist for the puppetmaster.conf and dashboard-vhost.conf files. I have my Puppetmaster (3.7.3) running on CentOS 6.5 under Apache and Passenger on port TCP/8140. It works fine. ...
1
vote
2answers
89 views

How can I test the date in puppet to implement a temporary rule?

What's a good way to test the current date/time in puppet in order to implement a temporary change? e.g. we've just had a security issue with NTP, and it took a while for Debian to come out with an ...
1
vote
1answer
265 views

Order of resource/class execution in puppet manifest file

I working on configuring CQ5 on vagrant managed virtual machine. The provisioning is done using puppet. I have query regards to the order of execution of classes/resources in puppet manifest file. ...
1
vote
1answer
42 views

Is it possible to execute «unless» clause as a specific user?

Background: I am upgrading our lxc puppet module to support the emerging unprivileged LXC technology. The code that creates the container is executed unless the following test if the container ...
0
votes
1answer
418 views

Duplicate declaration: Exec[] is already declared in defined type

Please help me with solution to a problem I was facing , I am trying to install adobe CQ5(author/publish modes) using puppet script. I have defined instance.pp as defined type and passing ( ...
-1
votes
1answer
199 views

puppet enterprise installation error

I am using puppet-enterprise-3.3.2-el-6-x86_64.tar.gz to install puppet enterprise, after installation I got ERROR: Could not install required packages--this may be due to a network failure or ...
-1
votes
1answer
31 views

puppet enterprise3.7 installation validation

I have installed puppet 3.7, to validate I referred yum.log,install_log and used command puppet --version. Is there any command to validate for successful puppet installation. Also I would like to ...
1
vote
0answers
57 views

Can not access www with puppetlabs apache module

The vhosts are managed with the puppetlabs-apache module and I can not access the website with www but I can without it. When i use www I get a blank page and there are no errors an any logs and non ...
0
votes
1answer
111 views

Is there a way to upgrade OS using Puppet without exec to run yum?

We will be upgrading our RHEL 6.5 machines to RHEL 6.6 in the coming week. I know how to create repos using Puppet, but instead of just using exec to run a yum -y update, is there a way to tell Puppet ...
2
votes
2answers
344 views

Why aren't my puppet variables getting assigned by Vagrant's puppet.facter options?

Given that the following is config'd in my Vagrantfile: puppet.facter = { 'variableOne' => 'one', 'variableTwo' => 'two' } ... and the following is in the manifest: notify{ "Got here ...
4
votes
1answer
87 views

Puppet: How to skip restart during package upgrade until config is replaced?

I'm trying to get Puppet to upgrade our Varnish 3 servers to Varnish 4, a major update which requires an updated config file or it won't start. This is on Ubuntu 12.04. The Varnish module is ...
4
votes
2answers
2k views

Ansible, Chef, Puppet or ____ : Which has the strongest Windows support and smallest init footprint

We do mostly (but not exclusively) win servers. Preferably, we can start the OS and do little or nothing to it to make it ready to receive commands (we know we may need to create a base image with ...