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

Specifying a source in puppet doesn't seem to work

I have been attempting to create a manifest for installing postgres 9.1 using puppet on a Centos 5 server. I have been trying to adapt the instructions at http://wiki.postgresql.org/wiki/YUM_Installation in order to achieve this and when I go…
Mr Wilde
  • 203
  • 2
  • 7
7
votes
2 answers

How to break dependency cycle in Puppet when including classes

I have the following definitions: class nginx::install{ ... } class nginx::service{ ... } class nginx::config{ ... } class nginx{ include nginx::install, nginx::service, nginx::config } class jenkins::nginx{ include nginx …
7
votes
1 answer

How to set up a Handler for a Notification or Subscription in a Defined Type?

How do I add handler to a defined type in puppet? For example, if I have: define foo::bar ($baz) { ... } How can I have handler in foo::bar to handle something that contains ... notify => Foo::Bar['zippidy'] ... ? The handler would then run…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
7
votes
3 answers

Use puppet to make changes to ip route and sysctl

I have two changes to ip route & sysctl that disable tcp slow start. Here’s how I do it ip route show Make a note of the line starting with default. Pick up the IP from the default line and run sudo ip route change default via $ip_address dev…
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
7
votes
1 answer

puppetlabs' file_line type not working

I've been working on learning puppet and using it to set up a jenkins box. I'm wiring jenkins through tomcat, since I may also end up running other webapps on there. EDIT: I've installed (via puppet module install puppetlabs-stdlib) the stdlib…
BeepDog
  • 314
  • 3
  • 12
7
votes
4 answers

Puppet file transfer slow

I have a puppet master and slaves in different datacenters. The latency between them is ~40ms. When I run "puppet agent --test" on a slave to apply the latest manifest it takes ~360 seconds to finish. After doing some digging I can see the main…
Noodles
  • 1,386
  • 3
  • 18
  • 29
7
votes
1 answer

What are compelling use cases for having both Chef/Puppet and RightScale/Scalr?

I was wondering about the differences between cloud computing management tools and server configuration software as there seems to be an overlap between them. I would like to have some feedback from customers who have been using both software.
Anonymous
  • 71
  • 1
7
votes
1 answer

Puppet - exclude file from management for managed directory

I have a couple Splunk servers in house which I manage part of the configuration through puppet. These are residing on CentOS 6 boxes. My definition is set up as file{ "/opt/splunk/etc/apps": recurse => true, purge => true, force => true, …
Tim Brigham
  • 15,545
  • 10
  • 75
  • 115
7
votes
2 answers

Different puppet modules with one common resource

I am writing particular modules for the different roles of my servers. So I have a puppet and a puppet-dashboard-Module. The puppet module ensures that puppet is correct installed. The puppet-dashboard does the same for the puppet-dashboard, off…
MMore
  • 543
  • 2
  • 6
  • 12
7
votes
2 answers

Puppet: Only allow changes during certain hours?

Is it possible to setup puppet in a way that changes in manifests only will be applied during certain hours, so that any eventual downtime on our server will occur when we decide it to? Thanks
Industrial
  • 1,579
  • 6
  • 24
  • 37
7
votes
1 answer

Puppet and templates : how to loop sequently and not randomly

See my node's configuration: $property_name = { "unit_1" => { host => [ "dns_name1/192.168.0.1/25" ,"dns_name2/192.168.0.2/25" ] }, "unit_2" => { host => [ "dns_name3/192.168.0.3/25", "dns_name4/192.168.0.4/25" ] …
Richi16
  • 73
  • 3
7
votes
1 answer

Puppet: Package removal and ensure stopped

I'm pretty new to Puppet, but I really like it thus far. Right now I'm currently setting it up to automate a small architecture. I have one problem though -- I want to remove a package, and ensure that it is stopped. To accomplish this, I have the…
vpetersson
  • 861
  • 1
  • 11
  • 22
7
votes
2 answers

How to comment out / uncomment a line in a configuration file with Augeas?

Assumming that I have the following in the /etc/syslog.conf file: # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.* /dev/console I want to change it to kern.* …
quanta
  • 51,413
  • 19
  • 159
  • 217
7
votes
6 answers

How to generate good serials for DNS zones with Puppet?

My tradition is to set all zone serials to the timestamp at modification. Now that Puppet is my new religion, I want to set serial timestamps when building zone files from exported resources. A somewhat trivialized example may look like this: file {…
Bittrance
  • 3,070
  • 3
  • 24
  • 27
7
votes
2 answers

How to call a puppet filetemplate twice with different parameters without using define?

i try to create two different files with one template, because they only diff by one line. file { "/tmp/bootstrap-raid.sh": content => template("pxe/bootstrap.sh.erb"), } file { "/tmp/bootstrap-noraid.sh": content =>…
c33s
  • 1,515
  • 3
  • 21
  • 39