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
6
votes
2 answers

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 { '/etc/nginx/conf.d': path => '/etc/nginx/conf.d', …
quickshiftin
  • 2,125
  • 5
  • 27
  • 41
6
votes
3 answers

Can you unapply a puppet manifest action?

I've applied a puppet manifest, which in turn included a puppet module that added several entities to /opt/... Is there a way to undo the effects of an applied puppet module ? i.e. "puppet module uninstall ..."
jayunit100
  • 211
  • 1
  • 9
6
votes
2 answers

Puppet&Hiera: $variable is not an hash or array when accessing it

I was using Puppet 3.2.2 and Hiera 1.2.1. And I wrote a puppet module and the content of init.pp was: class install( $common_instanceconfig = hiera_hash('common_instanceconfig'), $common_instances = hiera('common_instances') ) { define…
txworking
  • 479
  • 2
  • 6
  • 15
6
votes
3 answers

Puppet & Puppetmaster for development on VMs

I'm in the situation where I am constantly spinning up new vms for development. I've got a base image that i can clone but it quickly gets out of date and you have no method of adding a change across a lot of vms. I want to set up a puppet script…
6
votes
5 answers

Rolling update with puppet, ansible or fabric

I have some jetty servers with a loadbalancer before them. Now I want to update my application without downtime. When one jetty is going down and no longer reachable the loadbalancer automatically removes it from the list, so this is not the issue.…
Karussell
  • 191
  • 3
  • 15
6
votes
2 answers

Why Puppet can require each package just once?

When defining dependencies in a class each Package can be globally defined just once. I have hierarchy of configuration and some packages should be installed on all machines (that goes to default configuration) but other should be installed only on…
Tombart
  • 2,143
  • 3
  • 27
  • 48
6
votes
3 answers

how to pass parameters to puppet modules?

What is the best practice for configuration of puppet modules? I have puppet 2.7.11. I find this way quite messy, it looks like using global variables. node default { $always_apt_update = true include apt } Should I create class which would…
Tombart
  • 2,143
  • 3
  • 27
  • 48
6
votes
1 answer

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', gateway => '192.168.34.1', dev =>…
Dan
  • 367
  • 3
  • 4
  • 16
6
votes
2 answers

puppet and array loop

Hi I'd like some help on how to code this in erb in puppet, basically I have server::actionhost { 'details': servername[ 'felix', 'washington', ], ipa [ '192.168.43.5', '192.168.43.11', ], enviro [ 'prod', 'uat', ], } I now want to…
Dan
  • 367
  • 3
  • 4
  • 16
6
votes
1 answer

Easily recreate a server's "state"

I want the ability to setup new servers for dev/testing/prod very easily. The reasons for being able to setup a new dev VM is obvious, but for prod my concern is adding a new production server/migrating to a new server. I assume a traditional backup…
Brandon
  • 426
  • 5
  • 17
6
votes
3 answers

Managing the puppet filebucket?

We're implementing Puppet and hoping to use the filebucket to replace an in-house file change tracker. The physical layout of the filebucket into a hashed directory tree and the lack of "which client" metadata on the master-side file bucket make…
Rob Chanter
  • 487
  • 4
  • 8
6
votes
1 answer

Veewee, Vagrant, Puppet, Erlang and RabbitMQ

I am kinda stuck with a problem I am trying to wrap my head around for days now. Here is what I am doing: By using Veewee, I am creating a VirtualBox image and then I create a Vagrant box from it. See here, here Finally I run puppet from Vagrant to…
Tobias
  • 195
  • 2
  • 7
6
votes
3 answers

Puppet permissions issue reported on client

err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/plugins with {:ignore=>[".svn", "CVS", ".git"], :recurse=>true,…
Jon Skarpeteig
  • 951
  • 2
  • 14
  • 29
6
votes
3 answers

How To Tell Puppet To Only Install Using Pip If A File Doesn't Exist

I am using Puppet to install some Python packages using pip. I'm using Puppet 2.7, so my package declarations look something like this: package { "carbon": require => Class["graphite::prereqs::install"], ensure => latest, provider =>…
Tom Purl
  • 549
  • 1
  • 3
  • 13
6
votes
2 answers

Puppet - Restart a service in a different class

I am relatively new to Puppet, but so far realize it to be a very powerful tool. For an easy example, lets say I have a module "ntp" In module ntp I have three classes: class ntp - Installs the package from the distro package provider, sets the…
JTWOOD
  • 328
  • 1
  • 6
  • 15