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

learn more… | top users | synonyms

5
votes
1answer
307 views

How can I require an array of resources in puppet?

In my Puppet-manifest I need to exec a command, but only after an array-driven collection of another exec finished. Like this (pseudo-code): define foo() { exec { "touch $name": } } .... { ...
0
votes
2answers
585 views

Puppet template erb if variable is not defined keep default

I am trying to learn puppet and I can not understand how I can setup template erb to choose default value if variable is not defined in common.yaml or in node.yaml. This is what I have tried: 1) # we ...
0
votes
2answers
111 views

Suppress specific error/warning mesage in puppet?

Is it possible to suppress specific error messages when running a Puppet manifest? The following snippet activates and starts iptables if the file /etc/sysconfig/iptables exists. It works fine, but ...
0
votes
1answer
122 views

Notifying apt module “apt_update” from custom puppet module

I'm trying to configure APT to not install recommended packages. I'm using puppetforge puppetlabs/apt module so I wish to notify the Exec['apt_update'] resource from that module. I'm using this: ...
0
votes
0answers
31 views

Foreman Parameters accents not allowed

I'm using foreman to manage my servers launching "Run puppet" from theforeman interface. My classes use some values defined as foreman "parameters" to work. Everything works fine, but not when a ...
1
vote
2answers
191 views

Using a configuration management tool to configure nodes without ssh

I'd like to manage the configuration of several devices running embedded Linux. There is a web server in my environment which has a SOAP interface I can use to get/set all the parameters of each of ...
0
votes
2answers
123 views

Puppet: differences between centralized and decentralized manifest distribution

There seem to be two different ways to distribute puppet manifests: Centralized: This involves running a central puppet master server which is periodically queried by puppet agents for changes. ...
0
votes
2answers
500 views

Accidentally revoked all puppetmaster certs

I ran puppet cert clean --all, thinking it would only clear the certificates that hadn't been signed yet. There's about 300 nodes that rely on the puppet master. As far as I can tell, puppet agent ...
0
votes
0answers
60 views

Puppet Lambdas: counting up PHP-FPM worker ports with each

I'm using puppet 3.6 with the future parser. Now I'm trying to create PHP-FPM workers over an hiera hash: website: "testuser": "password": "asdfasdf" "server_name": "testdomain.com" ...
1
vote
1answer
34 views

What exactly are out_of_sync Puppet Resources?

In the puppet_run_summary.yaml reports one of the categories for resources is out_of_sync. What does this mean exactly?
1
vote
1answer
307 views

puppet service not stopping service (iptables)

I am trying to use a puppet master 3.1.1 to manage iptables on various servers. My local puppet agent is 2.7.19, the server OS is CentOS 5.4. ...
1
vote
0answers
291 views

Puppet Enterprise 3.3 on RHEL 7 - Error: Could not find terminus console for indirection node

With a fresh install (monolithic) of PE (Puppet Enterprise) 3.3 on RHEL (Redhat Enterprise Linux) 7 I'm currently getting the following error: ... Info: Loading facts in ...
1
vote
1answer
270 views

How can I diagnose and speed up slow Linux puppet sync?

I'm running puppet and it functions okay, but it's taking about 15 minutes on a sync without any changes, and it seems to me that this shouldn't take more than a minute or two. Here are some stats: ...
5
votes
2answers
389 views

Puppet - removing user who is logged in?

I've just started learning puppet and have came across a problem I was wondering if anyone knew how to fix.I m trying to remove a user I get an error message stating that they are logged in so can't ...
0
votes
2answers
95 views

How to print regex match

My problme is two fold. First is printing a regex match. The second is the actual regex. Problem 1: I'm trying to print the output of yum grouplist --verbose into a format that I can put into a ...
-1
votes
2answers
201 views

hiera.yaml is not loading on vagrant provision

Whenever I provision vagrant all the data is nil. When I ssh in and specify /etc/puppet/hiera.yaml as the config option i can get the values. How can I get vagrant to use the right hiera.config file? ...
1
vote
1answer
284 views

Nginx unmet dependencies over Vagrant / Puppet

I have no such issue on 64bit Ubuntu Precise, but once I tried to start 32bit machine, it failed on this command: # /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install ...
2
votes
1answer
653 views

“Run Puppet” function in Foreman works inconsistently

First, a quick overview of our setup: We have a Foreman instance running properly, let's call it foreman. The Puppet master works well, let's call it puppetmaster. There are two hosts contactable ...
1
vote
1answer
1k views

puppet-master/foreman “undefined method `[]' for nil:NilClass on node” after update

After updating my puppet-master from 2.7 to 3.6.2 I get the following message when running puppet agent on a node: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined ...
1
vote
0answers
104 views

Puppet Enterprise and parser=future error. Uninitialized constant Puppet::Pops

When trying to set parser=future on PE I get this error Could not autoload puppet/indirector/node/console: uninitialized constant Puppet::Pops This works using open source puppet 3.6 but not with ...
0
votes
0answers
2k views

PuppetDB: Connection refused

I'm trying to get PuppetDB to run on my puppetmaster machine. The problem is that I always get the following message when doing an agent run: err: Could not retrieve catalog from remote server: Error ...
3
votes
1answer
424 views

Puppet: how to run an exec only if puppet has made changes

We are doing basic management of some servers via puppet - The servers themselves run as part of a clustered system that handles other aspects like user accounts etc and includes a monitoring script ...
0
votes
2answers
600 views

Puppet node does not pull changes from master

I have followed the following three How-To's http://terokarvinen.com/2012/puppetmaster-on-ubuntu-12-04 https://help.ubuntu.com/12.04/serverguide/puppet.html#puppet-installation ...
1
vote
1answer
110 views

Puppet class / node dependencies

as many people, I have a class dependency problem with puppet. Either one class gets executed too early or I end up in a dependency cycle. Following setup: node foo: require base include ...
3
votes
0answers
32 views

advantages of using puppetmaster over git pull [duplicate]

I am currently setting up puppet for a network of around 30 servers in a master / agent setup, but since I am using the open source version of puppet, is there really any advantage of using a ...
3
votes
1answer
328 views

How to install and run Puppet Device in order to configure Cisco Switches and Routers?

According to this documentation it should be possible to configure a Cisco Switch by using the Puppet Module Device. Where could this module be found? Is this module restricted to Puppet ...
0
votes
1answer
657 views

Foreman environment import

I have foreman installed on an ubuntu 14.04 server. Now following problems: I have installed many puppetlab modules (puppetlabs/apt, puppetlabs/ntp, etc). After a click on "Import from..." I were ...
-1
votes
1answer
2k views

puppet logical conditions- “onlyif” and “unless” not working

I have written the following code and this works fine if swap is not in place, but once swap is created and if the script is executed again, it leads to error. I tried adding conditions using onlyif ...
0
votes
1answer
54 views

Management of system directory in linux using git

I'm using puppet to manage my linux systems. I have to use /etc/puppet directory to keep manifest files instead of user home directory, and I want to manage them by git. But because /etc/puppet's ...
1
vote
1answer
35 views

Intelligently handling puppet master unavailable (almost caching)

Is there a good way to set up caching for Puppet, specifically templates? I have a number of modules that would be really, really useful to have available in a DR situation. Proposed Solution I know ...
0
votes
1answer
95 views

Manage workstations with Puppet and TheForeman

I'm building an IT infrastructure for managing all the workstations in my company. I am interested in Puppet and a external node classifier as The Foreman, but I see all the time that Puppet and The ...
2
votes
1answer
58 views

File resource should not skip files if a separate file resource exists in the puppet project

It seems like puppet does not copy a file which is part of a recursive resource, if there is a separate definition for that file somewhere else. Is there a way to avoid this? For example this does ...
0
votes
1answer
91 views

MCollective metadata refresh returns: Host name lookup failure

With puppet installed, the command /opt/puppet/sbin/refresh-mcollective-metadata is run every 15 minutes. It loggs hostname: Host name lookup failure when it runs. hostname, hostname -i, and hostname ...
0
votes
1answer
548 views

Puppet augeas fails on insert with lens and incl specified

The augeas insert command is throwing an error if I specify a lens and incl in the resource. I haven't really been able to find anyone with a similar problem. When I include the following resource it ...
5
votes
1answer
69 views

Exclude named pipes and sockets in Puppet

We have an application which spawns named pipes (type p) on the fly. We want to manage the other files of the directory where the pipes are spawned with Puppet. Is there a simple way to tell puppet to ...
0
votes
1answer
271 views

puppetlabs/firewall - “Could not find resource type 'firewall'”

I'm fairly new to puppet, so this might just be me not seeing the obvious. I want to use the puppetlabs-firewall module and wrote a small module of my own. The init.pp looks like this: class ...
0
votes
1answer
329 views

Install php 5.5 on centos with puppet

I am trying to get a more recent version of php and mysql on a centos 6.5 x64 box. I added the yum repos epel and remi and have the remi as a dependency for php but it will not install. The error I ...
1
vote
1answer
534 views

external fact not available at very first puppet run

Introduction: We are using puppet to configure the nodes via a custom fact which is then referenced in hiera. The fact can either reside in the golden image in /etc/facter/fact.d/ or via pluginsync ...
1
vote
1answer
268 views

Puppet random password generating

I am going to install around 100 mysql servers and I would like to have different root password on every of them. I am going to use puppet mysql (https://forge.puppetlabs.com/puppetlabs/mysql) which ...
2
votes
2answers
96 views

Puppet - determine if another host is reachable?

Is there any ready way / custom fact / etc to be able to have Puppet respond differently if a given host and port isn't available from the managed system? For example I have some products that use ...
-5
votes
2answers
71 views

How to Install automatically PE agents in different Nodes?

I am new in Puppet. I am done for installing PE Master. I am done for install and setup Two PE agents. My question is how to automatically install PE Agents in different Nodes or Virtual machines. ...
2
votes
1answer
929 views

Vagrant's puppet provisioner not reading hiera.yaml backend correctly?

I have a puppet problem that is specific to the way that Vagrant uses the manifests/modules/hiera-config with its puppet provisioner, since a "puppet apply site.pp" works fine in the resultant vagrant ...
2
votes
0answers
58 views

A testing framework for Linux server configuration management

We are a medium sized shop that uses Puppet for Linux configuration management. Since we are a small shop, it's difficult to deploy and maintain DTAP environment. We normally perform manual testing ...
0
votes
1answer
60 views

Reapply a template at different points with different variable values

I don't appear to understand how to change the content of a file resource a different points in the application of Puppet manifests. I'm using this with Vagrant to set up a dev environment. I want to ...
2
votes
2answers
65 views

Puppet sshkey collection for non-puppet systems

On my systems I use the exported resources, and resource collection to manage the /etc/ssh/known_hosts ref of my systems. This works great for all my SSH hosts that are managed via puppet. But I ...
8
votes
1answer
1k views

Can Vagrant point to a directory of Puppet manifests for execution?

I am using Vagrant to jump start some initial Puppet config and am confused on how to include/run multiple manifests (other than just site.pp) in the puppet execution workflow without making the extra ...
0
votes
3answers
732 views

Foreman installation on amazon ec2 instance

Hi there and thank you for reading, I am currently in the process of setting up a puppet service for our ec2 instances and decided to give foreman a try (node certificate management and automatic ...
0
votes
2answers
98 views

Vagrant is creating files and folders in my project

Recently I updated Vagrant (v 1.6.3) and I noticed that in the folder of my project there are some new folders and files like: d20140610-11944-1j6n1cz/ d20140610-15421-1pkz3t8/ ...
1
vote
0answers
186 views

need help writing puppet module for sssd.conf using Hiera

I need to build a module to manage /etc/sssd/sssd.conf on our Red Hat VMs. The sssd modules published on the forge don't seem to do what I want, nor do I feel like forking any of them. I want to keep ...
1
vote
1answer
121 views

Puppet, Windows, and UAC

Is it possible to use Puppet on Windows where UAC is enabled? Does Puppet have any method for automatically saying yes to UAC prompts for a software install? My module does the following workflow: ...