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
16
votes
7 answers

What are the right questions to ask when deciding whether to use Chef or Puppet?

I am about to start a new project which will, in part, require deploying many identical nodes of approximately three different classes: Data nodes, which will run sharded instances of MongoDB. Application nodes, which will run instances of a Ruby…
John Feminella
  • 1,318
  • 1
  • 8
  • 11
16
votes
2 answers

How to change the polling interval of the Puppet master?

By default, Puppet clients ask for updates every 30 minutes. I would like to change this interval. What is the most convenient way to do it?
Lauri Lehmijoki
  • 283
  • 1
  • 2
  • 7
15
votes
2 answers

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. The aim is to run Puppet on these systems so these can be…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
15
votes
3 answers

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 is the odd man out here, and sadly, I'm having a…
Joel Westberg
  • 201
  • 2
  • 5
15
votes
2 answers

Options for Multisite High Availability with Puppet

I maintain two datacenters, and as more of our important infrastructure starts to get controlled via puppet, it is important the the puppet master work at the second site should our primary site fail. Even better would be to have a sort of active /…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
15
votes
3 answers

NFS with encrypted ubuntu home directory

I am having trouble getting NFS setup on with vagrant: On my local machine I have installed NFS: apt-get install nfs-common nfs-kernel-server And in my Vagrantfile set it to be used: config.vm.share_folder("v-root", "/vagrant", ".", :nfs =>…
user71736
15
votes
3 answers

Pros and Cons of a Decentralized Puppet Architecture

We have around 300 RHEL servers that are currently connecting to a Puppetmaster server. However, we have noticed some performance bottlenecks and it is the point of failure in our system. I am fairly new to puppet in general and I am considering…
JMeterX
  • 3,387
  • 16
  • 31
15
votes
1 answer

Puppet: ensure a file is empty

I would like to be sure that the motd file is empty. I would love to do like this: file { "/etc/motd": ensure => empty } This obviously does not work. Is there a simple way to ensure a file is empty instead using the "source" declaration and…
SamK
  • 1,356
  • 3
  • 14
  • 28
15
votes
4 answers

Managing an application across multiple servers, or PXE vs cfEngine/Chef/Puppet

We have an application that is running on a few (5 or so and will grow) boxes. The hardware is identical in all the machines, and ideally the software would be as well. I have been managing them by hand up until now, and don't want to anymore…
matt
  • 1,152
  • 1
  • 8
  • 18
14
votes
4 answers

Puppet: Test if Resource is defined, or create it

I've been trying to figure out a way to test if a resource is already defined in another file, and if not create it? A quick example: if File[$local_container] { alert("Testing - It existed $local_container") } else { file{…
gnarf
  • 713
  • 3
  • 8
  • 21
14
votes
3 answers

How to manually create Puppet CA and certificates?

I am wondering how to manually (using openssl instead of puppet ca command) create CA that would be usable by Puppet? The goal would be to script creation of such CA's to deploy them on multiple puppetmasters, instead of certificates being created…
SpankMe
  • 251
  • 1
  • 2
  • 4
14
votes
2 answers

Use puppet to set hostname?

Is there any way of setting a server's hostname using puppet? I could write a custom type, but maybe there's a simpler way. Thanks [Edit] Sorry, I should've mentioned I run puppet masterless, puppet is setup first and then it sets up everything…
Andrei Serdeliuc
  • 905
  • 5
  • 14
  • 26
14
votes
3 answers

Call Puppet function from Puppet template?

As of 0.24.8, can a Puppet template call a Puppet function? I can get similar functionality by calling the function in my manifest, assigning the return value to a variable, and then using the lookupvar('variable') in the template, but I'd like to…
sh-beta
  • 6,838
  • 7
  • 47
  • 66
14
votes
1 answer

How do I recursively mirror a directory and its contents with puppet?

Let's say I have a module with files/etc/foo/{conf0, conf1, conf2, conf3, etc}. It's simple enough to place each of these files when the number of them is small: file { 'conf0': path => '/etc/foo/conf0', ensure => true, source =>…
troutwine
  • 1,452
  • 5
  • 18
  • 33
14
votes
3 answers

How to manage mounted partitions (fstab + mount points) from puppet

I want to manage the mounted partitions from puppet which includes both modifying /etc/fstab and creating the directories used as mount points. The mount resource type updates fstab just fine, but using file for creating the mount points is a bit…
Cristian Ciupitu
  • 6,396
  • 2
  • 42
  • 56