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
520 views

What are the disadvantages of disabling tinker panic 0 in NTP?

We sometimes have the problem that new servers have the wrong time in the bios, so there time can be off by a month. When you suspend a VM in VMware and then unsuspend it, the time will be off too. ...
9
votes
1answer
580 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 ...
2
votes
2answers
55 views

Puppet: managehome on user type only works when user doesn't exist

I'm looking for clarification here. It seems the managehome attribute of the user defined type only works when the user doesn't exist. Have a look at this DSL user { 'artifactory': ensure ...
0
votes
1answer
34 views

puppet gitlab postgresql conflict

I#m trying to setup a VM with postgresql and gitlab. I'm using the following packages: gitlab & postgresql This is my init.pp class { 'postgresql::server': ip_mask_deny_postgres_user => ...
2
votes
2answers
961 views

Puppet - copy several files to directory

I'd like to copy a number of files from puppet:// urls to a directory on an agent. I'm not sure if I'm doing something wrong here, but it seems like puppet doesn't like this file { ...
2
votes
1answer
191 views

Puppet agent freeze on Ubuntu

I have 40 Ubuntu 12.04 servers. These servers are managed with puppet. Sometimes I have problem with puppet agent. puppet agent spawn child process (sh) and this process fails. Sh is zombie process. ...
2
votes
1answer
329 views

Puppet: hanging at Schedule[weekly]

Why would puppet hang at Schedule[weekly]? I'm running puppet in a masterless setup, so to apply by manifest I'm just running puppet apply /etc/puppet/manifests/site.pp In debug mode, these are the ...
3
votes
1answer
417 views

Loop through hash in puppet define

I'm passing a hash to a define like so: nodes.pp net::addr { 'routes': ipr => { ipr1 => { address => '192.168.34.38', netmask => '255.255.255.0', ...
4
votes
2answers
1k views

Vagrant OS X host nfs share permissions error - Failed to set owner to '1000'

I am a Vagrant and Puppet newbie, I have created a Base Box with Debian Squeeze plus standalone Puppet, using the instructions here to install Puppet with the Puppetlabs packages. The box itself ...
3
votes
3answers
187 views

Puppet module to manage groups not working

I have configured a module to set up a new group using the following documentation: http://docs.puppetlabs.com/references/latest/type.html#group. [root@puppetmaster ~]# cat ...
2
votes
0answers
54 views

puppet node keeps adding itself to the master

Im at the start of learning puppet. So far I successfully setup my master with dashboard and a couple of agents. But on one of my testing nodes I made a mistake when adding the node. I added it twice ...
3
votes
3answers
120 views

Update puppet master certificates automatically on new certificate

i am in process to set up a number of stateless nodes. Each node is provided with the same OS image file. It fetches the hostname from the DHCP/DNS server during boot time. Next step is to acquire ...
2
votes
1answer
724 views

Why does this puppet node definition not run on the hostname it matches?

I'm running puppet 2.7.9 on a Debian Squeeze system. The box I'm targeting is named 'puppet' # hostname puppet # facter | grep hostname hostname => puppet # cat /etc/hosts | head -n2 127.0.0.1 ...
3
votes
2answers
111 views

Best way to exclude node from puppet manifest

I would like to exclude a few nodes from a manifest. I've read "How to exclude Puppet modules for a few nodes?", but I would like to achieve something similar to ...
2
votes
2answers
1k views

Puppet agent certificate verify failure

I have a Puppet Master/Agent set up, and have successfully signed the certificate for the agent on the master. However, when I run puppet agent --test I get a failure that looks like this: Warning: ...
3
votes
4answers
1k views

How to add a file to the home directories of all existing and future users

I'm starting to use puppet to manage a couple of servers and I'm not sure how to achieve the following. I've got a users module which I use to create common users across all servers. I've got a git ...
2
votes
3answers
381 views

Make puppet agent restart itself

I've got a file that notifies the puppet agent. In the network module, the proxy settings are included in the .gemrc file like this: file { "/root/.gemrc": content => "http_proxy: ...
1
vote
1answer
93 views

Slow performance of only puppet commands on Learning Puppet VM

I'm using the Learning Puppet VM in VirtualBox and am getting slow performance (1 to 2 minutes per command) specifically for puppet commands. puppet itself is oblivious to these performance issues, ...
3
votes
2answers
54 views

Puppet eval variable only once

I generate password for new users with apg Simple: $password = generate('/etc/puppet/utils/gen_password') The only problem with this command is that I need it only once, but it's evaluated every ...
3
votes
1answer
75 views

Pass hostname as argument into Fabric task

I'm trying to put together a fabric script that creates a virtual instance via an API and then runs puppet on that instance. I've got a task that creates the VM, and a task that can 'bootstrap' the ...
1
vote
1answer
56 views

troubleshoot puppet install order

My puppet agent run fails initially, then succeeds on the second run. I understand that it probably has to do with my execution order, and a dependency is being added later on in the execution ...
2
votes
1answer
44 views

How to insert row into RDBMS table from puppet module?

I have a database table where I need to insert a row for each host has been assigned a particular puppet model. Lets call this puppet model foo. The db table is called foo_hosts has three columns: ...
3
votes
2answers
123 views

Manage enable - disable nginx site by Hiera puppet?

i got the task to implement hiera puppet script to manage sites_enabled for nginx. Here is my puppet script: common.yaml --- classes: - nginx nginx: enabled: abc.com ...
-1
votes
1answer
38 views

New puppet master VM counted towards licenses used, old puppet master node made agent no longer responsive

*Using VSphere Client 5.1 Ubuntu precise VM's with Puppet Enterprise 3.3.1 and PostgreSQL 9.3.1 I am utilizing the same postgresql database to manage a new puppet master and I know that the licenses ...
4
votes
1answer
72 views

Why would Puppet exclude a file resource without error?

The oddest thing is happening during this Puppet run (using Puppet Apply) and it has me perplexed. I've tried my usual channels to find solutions but I cannot find anything on the topic. I apologize ...
0
votes
2answers
188 views

puppet only exec when file does NOT exist

I only want to exec following command when file (/usr/local/bin/papply) does not exist. not sure what to put there. exec { 'git add url': command =>'git remote add origin ...
3
votes
2answers
56 views

How does active puppet agent handle downed puppetmaster?

Say that a puppet agent is in the middle of a refresh and I stop the puppet master service. Is there any point that it would potentially cause an incomplete or corrupt setup to be pushed out like I ...
2
votes
3answers
68 views

How to make puppet to start all services in the end of the catalogue run?

Especially when setting up a completely new server from the scratch, puppet tends to start dependant services as soon as all their dependencies are satisfied. This sometimes leads to situation that ...
0
votes
1answer
60 views

Puppet agent not following `server` setting

I have a very strange issue with Puppet 2.7.18 (on a Raspberry Pi) that started all of the sudden. In simple terms, the agent only partially follows the 'server' directive in puppet.conf. The ...
2
votes
1answer
101 views

How to collect tagged exported resources?

I export an haproxy::balancermember resource for my application servers: class www_admin($datacenter){ @@haproxy::balancermember{"${hostname}-www-admin:9193": listening_service => ...
0
votes
2answers
72 views

How to add multiple checks of OS for a package in puppet

I have mixture of CentOS , 5.8, 5.7, 6.1, 6.3 , 4.7 Ubuntu, Debian, servers with me. I want all of them to have nrpe installed on them. the problem i am facing is that when i write puppet code to ...
3
votes
4answers
2k views

puppet-dashboard: Could not retrieve facts from inventory service

I am trying to configure puppet-dashboard, and I'm running into an issue with Inventory/facts: Could not retrieve facts from inventory service: 403 "Forbidden request: ...
2
votes
0answers
72 views

When using the puppet node init command, are the parameters to specify in the answers.install file

On puppet-enterprise version 3.3.1, I am attempting to use the puppet node init command on a VMware puppet master node hosted on a VMware VSphere client with VCenter 5.1.0. My puppet master node has ...
4
votes
1answer
125 views

Overriding Parameters in Previously Declared Puppet Resource

I'm attempting to rebuild nwaller's sssd puppet module to be entirely LDAP based and to be a little cleaner. In it we have a resource defined for each authentication domain of the form define ...
1
vote
1answer
43 views

Augeas edit option if it exist, add otherwise - while referencing newly created node

I want to do something along the lines of: set /files/etc/exports/dir[. = '/export/home'][client = '10.0.0.0/8'] /export/home set /files/etc/exports/dir[. = '/export/home'][client = ...
2
votes
1answer
58 views

Is there more than one provisioning technology named fog? [closed]

I have a puppet installation in which I tried to check the fog version (for cloud provisioning), but I got no response so I assumed it was not installed. I need fog in order to utilize the vmware ...
1
vote
1answer
124 views

Puppet fails to mount a CIFS share

I have a Puppet module that I use to mount a CIFS share. Both the puppetmaster and the agents are running SLES 11. The mount works manually with this command: mount.cifs //servername/path/to/share ...
1
vote
0answers
81 views

Puppet agent runs as a daemon but manifests are only applied when puppet agent is run manually?

I have puppet agent daemonized # service puppet status * agent is running And can confirm that it is retrieving the configurations from the master # cat ...
1
vote
2answers
116 views

Null / blank values on puppet facts

How can I quickly and easily state that a null / blank value is OK on a fact within puppet? When assembling a custom fact I'm doing something like the following: ...
2
votes
1answer
129 views

How to update grub with puppet?

I would like to change a line in /etc/default/grub with puppet to this: GRUB_CMDLINE_LINUX="cgroup_enable=memory" I've tried to used augeas which seems to do this magic: exec { "update_grub": ...
0
votes
0answers
27 views

Create puppet manifests file with mariaDb

I want to customize vagrant with puppet and install there php5, apache and mariaDb. I try to use this site to generate suitable manifests file but there absent mariaDb. Can someone suggest where I can ...
2
votes
0answers
48 views

How do I obtain the ssh public key from my VSphere ESXi 5.1 host hypervisor residing in vcenter with puppet-enterprise cloudprovisioner

I am using the learn puppet 3.1 vm and trying to connect to a host hypervisor. I followed the instructions to create a .fog file under root which includes a yaml hash, and I read that the yaml hash ...
0
votes
1answer
163 views

Configuring puppetdb module in Puppet using Hiera

I'm trying to install the PuppetDB Module. Part of this bundles a module for installing some requisite Postgres instances which I am using as well. We primary use heira to configure roles and set ...
1
vote
1answer
83 views

puppet onlyif with pgrep does not work

I want to use an exec in puppet onlyif its process is NOT running exec { "execute me": onlyif => "pgrep -fc 'ruby execute.rb'", command => "execute me", } So on the above case, if ...
8
votes
4answers
5k views

How do I install a yum package group with puppet?

Does puppet have a way to install a yum package group (e.g. 'Development Tools'), besides exec?
-2
votes
1answer
42 views

Thoughts about a simple way to check remote updates lists and updating remote servers

I have been building my own Control Panel (mostly hobby) where I control hosting packages on my webservers, mailaccounts on my mailservers, DNS records etc. I also use this to monitor my servers. I ...
0
votes
1answer
102 views

How to have puppet master on hostname without modifying /etc/hosts on client?

I created an A record for my puppetmaster. In case the puppetmaster on this ip address goes down and I have to spawn a new one from a new ip address, I can just change the ip address associated with ...
0
votes
1answer
32 views

How Puppet handles manifests in terms of processes?

I want to find out how Puppet handles manifests: in master process or Puppet forks it to execute in child process? It necessary for me to know what exactly do puppet master while handling manifests, ...
0
votes
1answer
62 views

Puppet node ordering

Can someone help me with puppet node ordering, I know how to control sequence inside classes using require, before, subscribe etc but I need to be 100% sure that my node2 will be executed only after ...
-3
votes
1answer
46 views

What is best way to convert existing installation of linux to puppet

I have centos 6.4 running on aws on ec2. I has installed all moudles , plugins , libraries etc myself manually. Bow i want to convert that configuration into puupet. But i don't know how to do ...