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

learn more… | top users | synonyms

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

Accessing puppet configuration variables from manifests?

Is it possible to access Puppet master configuration variables (like confdir, masterport, etc) from within a Puppet manifest?
8
votes
3answers
4k views

Deploy our own software using Puppet?

(Apologies in advance for the stupidity in this question. I'm normally a programmer, not a sysadmin, but I've taken it upon myself to automate some things, and clean up some other things which are ...
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 ...
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 ...
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 => ...
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 (...
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 ...
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 ...
24
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
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
2answers
189 views

Unable to get defined path in 'source' type on AIX node

I am trying to create a set of users on my AIX node and trying to get their authorized_keys which are already hosted on my server with name like, 'myuser_id_dsa.pub'. Currently i am managing 2 nodes ...
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 ...
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 ...
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 ...
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 { "...
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
2k views

Scripted install vs cloning

What are the downside of cloning vs scripted installation (using Kick-start / Puppet)? I read a lot of pro-scripted install opinion, where cloning is considered as unreliable method due to ever ...
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
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 ...
2
votes
1answer
990 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 ...
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 ...
3
votes
2answers
1k views

How does one configure puppet for push-only updates?

Setting runinterval=0 in /etc/puppet/puppet.conf causes continuous pulls, not no pulls. I'm trying to arrange puppet so that it will listen for puppetrun calls, but never pull without one.
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 ...
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/...
1
vote
1answer
1k views

Puppet in DNS-less enviroment

While I know DNS recommended for Puppet, is it a mandatory requirement? Or I can get with using plain IP's for this? Thanks.
6
votes
1answer
3k views

Fine line between kickstart and puppet

I'm interested in Puppet configuration management system, but wonder where the fine line goes between kick-start and Puppet? Today I do a lot of tasks in kick-start (powered by Cobbler), including ...
8
votes
4answers
755 views

Configuration management: Cross-machine dependencies

I've used tools like puppet to manage individual systems, with generally a high level of success. Where puppet falls down is that it isn't good at managing dependencies outside of an individual ...
3
votes
2answers
1k views

What is the best process to automate Zimbra deploy using cobbler+puppet?

I set up a fully working cobbler server on a RHEL5 machine. This is able to deploy a new server on bare metal machine, partitioning the disks, using LVM and creating as much virtual machines as I need....
20
votes
2answers
12k views

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

Puppet: Adding require parameters after the fact

I want to be able to add some requires to a file I setup: define daemontools::service( $ensure = 'running', $source ){ case $ensure { 'running': { $real_ensure = $source } 'stopped': { $...
4
votes
1answer
9k views

Puppet 0.25.0: Problems with access control, how can I fix them?

So, I've been playing with puppet for a while now, and I have managed to get my site.pp file setup and working the way I want it to when I run puppet manually against it, and I'm starting to move on ...
1
vote
4answers
1k views

Puppet: sharing info between classes

I don't think there is a right way to do the following (yet) in Puppet, but this strikes me as desirable. I want my classes to be able to influence the content of a templated file from another class ...
4
votes
1answer
14k views

Puppet: Referencing variables from a define in a template

I have the following class and definition in puppet: $certDirectory = "/var/lib/ssl/certs" class openssl { package { "openssl": ensure => latest } file { "openssl": path => "/var/...
3
votes
1answer
949 views

puppet node update at will

What is the preferred method (or any for that matter) to tell puppet nodes to update when I make a change to site.pp for instance and need it deployed right away? I have thought of pssh-ing to the ...
2
votes
1answer
1k views

How do I add “ensure” arguments to puppet definitions?

I have a puppet definition that runs an exec type to create a mysql user that looks like this: define mysql::mysql-user ($user, $host="$mysql_subnet", $passwd="", $ensure="present") { exec { "...
5
votes
3answers
2k views

Is there any strong, well tested and general purpose puppet recipes-base to be used as starting point for customization?

I have configured a working cobbler system that successfully handles my bare metal server deployment and I'm going to start the configuration management issues using puppet (integrating it as much as ...
4
votes
2answers
646 views

puppetrun not reporting client errors

puppetrun doesn't report errors my puppetclients encounter. for instance, if I put jibberish into site.pp and run puppetd --test on the clients I get an error. if I run puppetrun on the puppetmaster ...
6
votes
3answers
579 views

Puppet Module Resources

Instead of continually writing my own modules to convert systems into puppet management, I would prefer to leverage the community as much as possible. So far I have come across two sites that compile ...
0
votes
0answers
863 views

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 ...