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

learn more… | top users | synonyms

2
votes
3answers
4k views

Puppet Dashboard - Getting it to display classes and the add class, group, etc. functional?

I extracted the puppet dashboard, configured the clients to the report and got all the reporting stuff working. The classes in the policies are not being parsed into the dashboard. I also added the ...
3
votes
1answer
2k views

Is there a Ruby/ERB cheat sheet for puppet users not familiar with Ruby in general?

I'm still getting to grips with puppet and starting to mess around with templating, which is based on Ruby's ERB system. I am not familiar with Ruby in general, does anyone know of a cheat sheet for ...
5
votes
1answer
4k views

migrating puppet clients to a new puppet master (old puppet master server gone, only using backup)

My puppet master server had a hardware failure, and I have restored to another box. However this box has different hardware and hostname. If I restore the existing /etc/puppet directory to the new ...
2
votes
2answers
5k views

Puppet - how can i copy a file to several user folders?

Well i was using the info on this: Puppet - Any way to copy predefined custom configuration files for software on clients from the puppet master (host)? But i need some more elaborated, because i ...
2
votes
2answers
3k views

How can I edit puppet .pp files with Eclipse & DLTK

The puppet editor tips page seems to suggest that using eclipse & dltk (presumably the ruby tools) will assist with editing .pp files. http://projects.puppetlabs.com/projects/1/wiki/Editor_Tips ...
17
votes
5answers
4k views

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

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 ...
1
vote
1answer
110 views

Puppet keeps trying to install mongrel

I'm using Puppet to administrate my servers and one of the things I'm doing is installing Mongrel from the Gem: package { mongrel: provider => gem, ensure => latest, require => ...
6
votes
2answers
4k views

Puppet class inheritance confusion

I've read the documentation on scope, but I'm still having trouble working this out. I've got two environments that are very similar - so I've got: modules/django-env/manifests/init.pp class django-...
5
votes
3answers
307 views

What configuration management solutions exist in a non-networked environment?

My servers exist in an environment without outside network connectivity (this is a requirement), so when I deploy updates all packages, binaries, config files, etc. must be included on the delivered ...
9
votes
4answers
14k views

Puppet hostname doesn't match server certificate

I'm trying to set up a Ubuntu VM with puppet installed so I can locally test our production setup. I'm having trouble getting puppetmaster and puppet to talk to each other. Let me take you through ...
2
votes
6answers
5k views

How to edit /etc/shadow on many Linux servers?

I would like to change the root password on about 20 Linux servers. Mostly CentOS and Ubuntu. So I have looked at Puppet, chef, and cfengine, but I can't really tell if they can do that, or if they ...
5
votes
2answers
527 views

Collecting and centralizing information from many servers, sort of like Puppet's facter

We manage hundreds of RedHat Enterprise Linux servers happily with Puppet. One of the cool side effects is that we can go to /var/lib/puppet/yaml/facts and look at the output of the "facter" utility (...
2
votes
2answers
3k views

Puppet- ERB template- Question about defined classes

Puppet template files are erb rails files. I want the line: Include modsecurity.d/*.conf To be included in the final file if the class mod_security is included. From the puppet docs: http://docs....
2
votes
1answer
121 views

How do I get puppet to load other policy files in the manifest directory?

How do I get puppet to load other policy files in the manifest directory? It loads site.pp fine, but I would like to load a couple others I have in the directory and it is not loading them with a ...
23
votes
1answer
19k views

How to update a package using puppet and a .deb file

I am trying to figure out the proper way to update/upgrade a deb package using puppet from a local source deb file. My current config looks like this... class adobe-air-2-0-4 { file { "/opt/air-...
2
votes
6answers
345 views

Managing/versioning host-specific scripts (*nix)

We're currently using Puppet (with the manifests and related files in SVN) to manage configuration of our *nix hosts. However, I've hit a bit of a perplexing issue. Many of our hosts have scripts ...
2
votes
4answers
1k views

Automatic deployment and configuration for Windows servers

I'm an experienced UNIX and Linux sysadmin who is about to start working for a mixed UNIX/Windows shop. I've been deploying servers automatically using tools like Puppet, Chef, FAI, etc. I haven't ...
1
vote
1answer
604 views

I've broken my puppet, clients are failing reporting “ Could not run Puppet configuration client: Invalid parameter stage”

I'm getting this error on all my clients, debian and CentOS, where the line number depends on which case is selected for the OS; err: Could not run Puppet configuration client: Invalid parameter ...
4
votes
5answers
2k views

Puppet performance compared to CFEngine

I'm trying to decide between using Puppet or CFEngine for my configuration management system. Performance is going to be a key factor, and research on the internet suggests CFEngine uses less memory ...
1
vote
1answer
301 views

debian puppet clients (0.24.5-3) failing to retrieve file , centOs (0.25.5-1) working ok

I have got a puppetmaster and a mix of CentOs 5.4 and Lenny 5.0.3 clients. The CentOs have puppet-0.25.5-1.el5 installed and are working fine to retrieve files. The Debian boxes have the 0.24.5-3 ...
3
votes
1answer
3k views

Classes & Defines in Puppet

Although I know the immediate solution to a problem I was facing yesterday (thanks to the folks over at IRC #puppet), I still don't understand how it solved the problem, or rather what's the ...
2
votes
2answers
1k views

CPAN installer for Puppet can't find relationship target

Based on some code from this blog and in the comments I'm trying to define some simple CPAN install functionality for Puppet, and I'm trying this: class perl { define install-cpan () { exec { "...
1
vote
2answers
2k views

Using Puppet to Install PHP 5.2 on Ubuntu 10.04

I'm working on installing PHP 5.2 on Ubuntu using Puppet (with the goal of using Puppet and Drush to install Drupal), but the packages it installs are all PHP 5.3. I found instructions to install PHP ...
1
vote
1answer
331 views

Can Puppet be configured like this?

This entire set-up is in INTRANET. I am working on SuSe Linux Platform (SLES/SLED). Recently there was package which had to be updated because of some problem. So this time we could manually go to ...
0
votes
3answers
1k views

Puppet - MD5 sum of string

I would like to name a file based on a MD5 sum of certain characters. Such as $environment and $URL. So from a high-level what I'd want is something like md5("http://$environment/$url"). Does anyone ...
2
votes
2answers
5k views

Setup Tomcat with Puppet (noob question)

I have been learning Puppet (as in, the last 24 hours) and have come up with the following module to install Tomcat. It works great, but I can't help but feel like this is not the most optimal way to ...
3
votes
2answers
3k views

How do you configure puppet to add a user to the sudoers group when it varies on different systems (or, how do variables work?)

I'm starting to configure systems using Puppet, and I'm having trouble with setting up my user account. On our CentOS 5.3 server, the sudoers group is 'wheel', gid 10. On our Ubuntu 9.10 server, the ...
7
votes
2answers
590 views

Puppet Packages, Puppet Forge, and good Puppet code?

Does anyone have a ranking system for the packages available from the Forge at PuppetLabs? For example, there a half dozen Apache packages. Given normal distribution, one will probably work, one ...
1
vote
2answers
429 views

Installing Zend Server via Puppet, on RHEL and Ubuntu?

I'm learning Puppet by example and writing some modules to manage our current RHEL and Ubuntu servers. My first serious attempt is a Zend Server module. Since Puppet has a Yumrepo, but no Aptrepo ...
5
votes
2answers
6k views

Puppet could not retrieve information from plugin source

Every time I run puppet, I get this error. err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/plugins
3
votes
3answers
4k views

Puppet - Any way to copy predefined custom configuration files for software on clients from the puppet master (host)?

I have been having a lot of fun coding with what puppet I have had experience with so far, and so far it looks like it can do most of what I need it to do. One thing I am not finding in the ...
0
votes
1answer
2k views

Just trying to set up a puppet client and server in CentOS VMs from scratch - basic setup problems

I have a set of two VM's which I am trying to use puppet on. It's about a simple setup as you can get, I am trying to setup a server and setup a client and simply get to writing some puppet policy. ...
4
votes
3answers
1k views

How to handle Puppet version differences between linux distributions

We're a small webdev shop that's investigating to roll out Puppet on various development and production servers. The puppetmaster is an Ubuntu 10.04 server with Puppet 0.25.4, from Ubuntu's repo. ...
1
vote
1answer
239 views

Should a puppet server be local to the network or available to all networks?

We have several servers that I'd like to start managing with Puppet. We have: Linux servers in our California office that I access over a VPN Linux servers in an Oklahoma data center that I access ...
2
votes
1answer
1k views

Creating a file with Puppet with facts from multiple hosts

I'm trying to have puppet build a configuration file that looks like this: [All] Hosts=apt-dater@puppetmaster;apt-dater@blaster; (etc...) Basically, this file needs an entry for each node that ...
0
votes
1answer
91 views

Can I make Puppet's module-to-file mapping to start searching at the top of the modules tree?

Consider these two Puppet module files: # File modules/a/manifests/b/c.pp class a::b::c { include b::c } # File modules/b/manifests/c.pp class b::c { notify { "In b::c": } } It seems that ...
3
votes
3answers
2k views

Puppet, Nagios, Munin on cPanel based hosts [closed]

I've been managing 20-30~ cPanel based hosts over the past year with Puppet, Nagios and Munin for general monitoring / trending however a lot of the methods I've had to use to deploy / manage things ...
12
votes
3answers
12k views

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 ...
2
votes
1answer
986 views

Load balancing with puppet

Im trying to setup a loadbalancing system. My load balancer (nginx) has a conf file where i should list all IP's of the upstream servers. I could put the IP's on the conf manually, but this ways i ...
6
votes
4answers
1k views

Puppet causes endless restarts of CUPS (how does one prevent this)

It makes sense, and is in fact suggested on this site, to have a critical file change trigger a service restart with puppet meta-parameters (such as notify or subscribe). For example: ## file ...
2
votes
1answer
3k views

Is there any way to use arrays in a puppet module (not in template)?

I want to use puppet to manage a hadoop cluster. On the machines we have several directories which must be created and set permissions. But i'm unable to add array values for defined methods. define ...
1
vote
2answers
1k views

Problem getting puppet to sync custom fact

I am having trouble getting puppet to sync a custom fact. I am using puppet version 0.25.4. The fact is inside a module as described in http://docs.reductivelabs.com/guides/plugins_in_modules.html If ...
11
votes
5answers
16k views

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?
8
votes
5answers
9k 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
2answers
3k views

Puppetmaster don't notice changes to site.pp

I've just setup a new production environment with puppet. Using 0.25.4 in client/server. Ruby is at 1.8.5, CentOS 5.4. I've made a simple manifest for configuring yum-updatesd, but the puppetmaster ...
14
votes
4answers
5k views

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 ...
4
votes
3answers
2k views

Is Capistrano or Puppet capable of this?

I find myself spending a lot of time setting up new servers. I always have the same exact software stack: nginx mysql php + php-fpm + xcache memcached munin I pull all the configuration and init.d ...
6
votes
2answers
483 views

Do you remove unwanted packages (*NIX), or do you disable them?

Im currently building a cobbler and puppet setup. One thing I do is disabling unwanted services with puppet, but then I thought: Should I remove them with cobbler, rather than disabling them after ...
3
votes
1answer
3k views

Depend on a resource only if it exists in Puppet

I have a class for enabling firewall on nodes (using ufw, in Ubuntu): class ufw { package { ["ufw"]: ensure => latest } exec { "enable-firewall": command => "/usr/bin/yes | /usr/...
0
votes
1answer
911 views

cherrypy fails to stop when puppet tries to ensure running and refresh it at the same time

I am trying to manage a cherrypy service with puppet. However, when the configuration is applied, cherryd ends up with no PID file although the process is up and running. Since the PID file is lost I ...