Questions tagged [puppet]

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

Puppet is a configuration management tool for Unix and Windows. It works either standalone mode (puppet apply) or in client-server mode (puppet agent) with puppet agents running on client systems checking in with the master daemon on the server on a regular basis. Puppet's written in ruby, and puppet source code, i.e. puppet manifests, uses its own domain-specific language that focuses on declaring the system resources and it's intended state.

Combined with system provisioning tools (PXE, kickstart, FAI, etc), puppet can fully automate any software installation and configuration process that doesn't require a GUI interface.

More info:

Related:

1792 questions
26
votes
4 answers

How can I pre-sign puppet certificates?

Puppet requires certificates between the client (puppet) being managed and the server (puppetmaster). You can run manually on the client and then go onto the server to sign the certificate, but how do you automate this process for clusters / cloud…
Ranguard
  • 681
  • 7
  • 9
24
votes
3 answers

Configuration management: push versus pull based topology

The more established configuration management (CM) systems like Puppet and Chef use a pull-based approach: clients poll a centralized master periodically for updates. Some of them offer a masterless approach as well (so, push-based), but state that…
Willem
  • 2,872
  • 4
  • 28
  • 35
23
votes
5 answers

puppet: force service restart after configuration file was modified

how can i ensure that if new version of configuration file is downloaded via puppet from master repository to one of managed servers relevant service is restarted. typical scenario - let's say there is new munin or apache config. puppet client…
pQd
  • 29,981
  • 6
  • 66
  • 109
22
votes
4 answers

Adding a random delay for a Linux command

I am using func to perform parallel commands on our servers. The other day, we had an issue when a service restart of puppet via func made all our severs hit our puppetmaster at the same time. My question: How can I execute the same exact command on…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
21
votes
2 answers

How to do a file/dir exists conditional in Puppet?

I'm trying to write a function in puppet that will do a fail if the passed directory path does not exist. if File["/some/path"] always returns true, and if defined(File["/some/path"]) only returns true if the resource is defined in puppet,…
ddario
  • 511
  • 1
  • 3
  • 12
20
votes
2 answers

Puppet: Node name seems dependent on reverse dns?

I seem to be running into a little bit of a problem understanding how to get this to work. I have a new server I'm building sitting behind the office NAT at work, its reverse dns maps to office.mydomain.com, but I want the machine to be…
gnarf
  • 713
  • 3
  • 8
  • 21
20
votes
5 answers

How to tell what version of puppet you are running on centos?

I'm getting started with puppet on centos and was confused about a few things. First off a man page exists for puppet-master but not for puppetmaster even though the daemon in /etc/init.d is puppetmaster Running the command $ puppet-master…
user784637
  • 1,542
  • 7
  • 35
  • 52
18
votes
5 answers

Is it possible to get aws ec2 instance id based on its IP address

I have list of IP addressed, I want to find if instances associated with the IP address are still running or terminated. I am launching and terminating lot of instances on daily basis, just want to remove their certificates from puppetmaster. If…
Ramesh Kumar
  • 1,770
  • 5
  • 19
  • 29
18
votes
3 answers

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 "subversion" deals with various conf files and creates…
user130370
18
votes
7 answers

How to add multiple dns names to my puppetmaster?

my puppet.conf on the master [master] certname = myname.mydomain.com ca_server = myname.mydomain.com certdnsnames = puppet;puppet.local;myname.dyndns.org;hivemind.local; for my understanding with the certdnsnames defined the following should…
c33s
  • 1,515
  • 3
  • 21
  • 39
18
votes
5 answers

How do I access an environment variable in a puppet manifest?

How do I access an environment variable (from the puppet daemon's environment) in a puppet manifest?
joeforker
  • 2,399
  • 4
  • 26
  • 35
17
votes
1 answer

What is the meaning of holdoff time over in systemd services?

I have installed Puppet Enterprise on CentOS 7. I can see that several Puppet services fail to start saying holdoff time over. What does this mean? Sep 03 20:50:16 l-pm1 systemd[1]: pe-puppetdb.service holdoff time over, scheduling restart. Sep 03…
Priya R
  • 273
  • 1
  • 2
  • 4
17
votes
5 answers

When is it appropriate to use a configuration manager (eg Puppet / Chef / Ansible)?

At my current workplace, I look after two VMware host machines, an OpenBSD physical machine, three Debian VM's, and six Windows Server VM's (2008/2012). I'm considering implementing a configuration management tool such as Puppet or Chef. Is this…
Rhyven
  • 183
  • 8
17
votes
2 answers

Adding lines to /etc/profile with puppet?

I use puppet to install a current JDK and tomcat. package { [ "openjdk-6-jdk", "openjdk-6-doc", "openjdk-6-jre", "tomcat6", "tomcat6-admin", "tomcat6-common", "tomcat6-docs", "tomcat6-user" ]: ensure => present, } Now I'd like…
miku
  • 445
  • 1
  • 3
  • 12
17
votes
5 answers

What's the strengths and weaknesses of existing configuration management systems?

I was looking up here for some comparisons between CFEngine, Puppet, Chef, bcfg2, AutomateIt and whatever other configuration management systems might be out there, and was very surprised I could find very little here on Server Fault. For instance,…
Daniel C. Sobral
  • 5,713
  • 6
  • 34
  • 48