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

learn more… | top users | synonyms

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
319 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
943 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
583 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
423 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 ...
4
votes
2answers
5k 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
3k 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
236 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
10k 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
916 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
920 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
12k 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
4answers
7k 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
4k 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
473 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 | ...
0
votes
1answer
859 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 ...
23
votes
7answers
24k views

Adding a yum repo to puppet before doing anything else

Is there a way to force puppet to do certain things first? For instance, I need it to install an RPM on all servers to add a yum repository (IUS Community) before I install any of the packages.
4
votes
4answers
784 views

What methods are there to configure puppet to serve resources for multiple environments?

I seem to come across two ways for using puppet in multiple environments: 1) Install a puppetmaster in each environment and only update the recipes from source control for that environment when ready ...
3
votes
2answers
1k 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?
3
votes
1answer
5k views

Uninstalling/Upgrading Puppet

The questions below are all related to the topic of uninstalling/upgrading Puppet: How do I uninstall previous versions of puppet? What files do I need to delete and where are they located? Is there ...
8
votes
3answers
2k views

Global vs local puppet management

Have anyone ever managed several geographically distributed systems with Puppet? I have several almost exactly similar deployments (except the server IP's), which management I'm looking to convert to ...
6
votes
4answers
9k views

Puppet manifest example

Can anyone point me to a full example (tar/zip) directory of a Puppet manifest? I get the guides but it would be way easier just to look at a working directory.
1
vote
1answer
907 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
2k 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 ...
7
votes
2answers
2k views

SSH keys management system

I'm looking to switch from password based (which I starting to become overwhelmed with) to SSH keys based system. I'd like to know if there any SSH keys management system or server solution, which ...
6
votes
2answers
1k 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 ...
51
votes
6answers
14k views

Puppet vs Chef, pro and contra from users and use cases [closed]

I already googled and read the "to-puppet-or-to-chef-that-is-the-question" article. I'm interested in use cases, real world implementations in which people had choosen one or the other on real ...
27
votes
9answers
11k views

Are configuration management tools (Puppet, Chef) capable of keeping installed packages up to date?

This is probably a simple question for those of you already running configuration management tools. Are configuration management tools such as Puppet or Chef the right approach for keeping installed ...
5
votes
4answers
7k views

Puppet : How to override / redefine outside child class (usecase and example detailled)

The use case i try to illustrate is when to declare some item (eq mysqld service) with a default configuration that could be included on every node (class stripdown in the example, for basenode), and ...
6
votes
8answers
2k views

any way to use puppet or chef without launching daemons?

Is there any way to use puppet or chef recipes without launching daemons and such? I'd like to be able to interpret files and apply them without all of the heavy lifting. If not, is there an ...
8
votes
4answers
694 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 ...
29
votes
4answers
18k views

automate dpkg-reconfigure tzdata

I'm using puppet to admin a cluster of debian servers. I need to change the timezone of each machine on the cluster. The proper debian way to do this is to use dpkg-reconfigure tzdata. But I can ...
1
vote
2answers
188 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
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': { ...
20
votes
2answers
11k 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 ...
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 ...
7
votes
4answers
10k views

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