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
0answers
31 views

Data center fact in Puppet

In hiera examples, I have seen people putting a fact called dc or datacenter in their hierarchies. However, its not clear anywhere as to how the fact is implemented to determine the data center. Is ...
0
votes
0answers
4 views

Zenworks Linux Puppet Policies: how to use external modules?

Novell Zenworks Configuration Management is relying on Puppet for Linux endpoint policy enforcement. The setup has no Puppet master in place, instead ZCM device management is used for targeting and ...
0
votes
1answer
31 views

Using Puppet apt module

I'm an absolute beginner at Puppet, and I'm having an issue when I try to install a package via the apt-module. class newrelic { apt::source { 'newrelic':location => ...
0
votes
1answer
19 views

How to create an apt repository on puppet master

I am setting up a puppet master and want to distribute nagios core 4 and nagios-plugins to each of my agents and the master itself. Nagios core 4 is currently not available from the Ubuntu ...
0
votes
0answers
25 views

Add a class to a puppet manifest file using command-line

Is there any easy way to append a class definition to a Puppet manifest file? For example, I want to add a new vhost to a server defined in a separated puppet manifest, so I want to add: ...
-5
votes
0answers
67 views

which is the fastest between puppet, chef, ansible, salt and cfengine? [closed]

I am using puppet and ansible and haven't tested much of chef and never tried salt and cfengine, but for those that have worked with all, which is the fastest? In terms of speed. Thanks PS. Yes i ...
1
vote
1answer
28 views

Why is Puppet creating these files after every run?

I've recently noticed that the Puppet agent is creating zero-length files with the name of "1" in directories I've defined as: file { '/opt/foo/': ...
0
votes
1answer
15 views

In puppet, can you supress a specific notice log entry? LVM forge module

With the LVM module from the Forge, the "size" property sets the desired size of the logical volume. The "size_is_minsize" parameter says that "size" is just the minimum desired size (it's OK if the ...
0
votes
1answer
22 views

puppet defined type and creating multiple templates from 1 .erb file

I need to find a solution to this problem that I've come across. I have a hash (it's supposed to be overriden as a smart class parameter later on) that I am iterating trough in my template.erb to ...
0
votes
2answers
26 views

puppet revoke all certs requests waiting on master

I would like to know if there is a way to revoke some cert requests that came to my puppet master e.g $ sudo puppet cert --list "(none)" (SHA256) ...
1
vote
1answer
24 views

LVM module from puppet forge randomly breaks applying manifest

When using the lvm module, we get an "Invalid parameter size_is_minsize" randomly. If we restart puppet master, the error goes away for a while but then comes back. This is on Scientific Linux 6.6 ...
0
votes
1answer
26 views

Error while installing apache with puppet-apache module

I am using puppet lab's apache module for installing and configuring apache. I am using Debian 7 (wheezy) and below is the manifest file I am use as site.pp in puppet-master. And from the puppet ...
0
votes
0answers
17 views

Is it possible to declare Exported Resources as an Attribute instead of a Type in Puppet?

Avoid to add a host manually as an attribute class::define { 'title': attribute3 => [ 'stone', 'wood' ], hosts => [ 'host1.domain', 'host2.domain' ] } ...
4
votes
1answer
54 views

Open Source Puppet for Network Devices

I'm attempting to determine whether I'd be able to run Puppet on network devices (switches, firewalls etc.). From what I can tell after reading online documentation, Puppet Enterprise will cater such ...
3
votes
1answer
31 views

Detecting Infrastructure Provider in Puppet

Note: we use Puppet standalone (master-less) i.e. puppet apply. Usually, while deploying a web application there are a number of back-end services and applications that run behind the front-facing ...
0
votes
1answer
34 views

How to return default hash keys in hiera_hash() call?

In an attempt to clean up my client's Hiera data for Puppet, and drastically reduce the number of Hiera calls in the Puppet manifests, I'm changing constructs like some_name::key1: a_value_1 ...
1
vote
1answer
38 views

Puppet: How to write a proper “condition and condition” statement?

I wrote a "Message of the day" Puppet module which affects all proxy servers in my company. Within the template file, I have the following "if statement": <% if @hostname !~ /^haproxy\d+/ and ...
0
votes
2answers
46 views

Why is the Puppet agent not recognising environments?

I have configured dynamic environments in puppet.conf such as: modulepath = $confdir/environments/$environment/modules manifest = $confdir/environments/$environment/site/manifests/site.pp ...
3
votes
1answer
37 views

Puppet configuration to create file

I am trying to create a vagrant box to use for development with Puppet as provisioner. I want to set a specific .bashrc for the vagrant user. Here are my relevant files. dev.pp: class dev { ...
2
votes
1answer
27 views

Avoid declaration of if regex statements while using Exported Resources in Puppet

Avoid to add a host manually class::define { [ 'host1.domain', 'host2.domain' ]: attribute => 'hello', attribute2 => 'world' } class::define { [ 'host3.domaintwo', ...
1
vote
2answers
67 views

Installing packages with dependencies using puppet

I am new to puppet, for the process of learning it I created Puppet Master and Puppet Slave setup and configured a mysql module to install mysql on Puppet client. Below is the manifest file. class ...
2
votes
1answer
61 views

Setup a non-CA Puppet Master

I would like to set up an additional puppet master to act as a non-CA server. I’ve have installed and am successfully using Passenger. The servers in question are all running CentOS 6.6 and are all ...
0
votes
1answer
21 views

Puppet CRLs in an environment where 'puppet' doesn't resolve right

Due to political reasons above the technical layer, the bareword puppet does not resolve to the correct puppetmaster for parts of our infrastructure. These areas have their own, independent ...
0
votes
1answer
39 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
38 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 ...
2
votes
2answers
40 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
37 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
40 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
32 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
72 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
93 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
78 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
46 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
23 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
47 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
79 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
68 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
57 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
57 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
93 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
36 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
58 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
24 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
58 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
42 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
45 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
40 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
56 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
39 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
61 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 ...