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
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
901 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
908 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 ...
10
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
472 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
853 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 ...
21
votes
7answers
23k 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
897 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 ...
6
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
686 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
186 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': { ...
19
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 ...
5
votes
4answers
9k 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 ...
4
votes
1answer
13k 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 => ...
8
votes
4answers
18k views

How can I have puppet deploy ssh keys for virtual users?

I am trying to get puppet to assign authorized ssh keys for virtual users but I keep getting the following error: err: Could not retrieve catalog: Could not parse for environment production: Syntax ...
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 ...
3
votes
2answers
997 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 ...
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 ...
26
votes
7answers
2k views

Puppet Security and Network Topologies

Background: I am finally setting aside some time to join the 21st Century and look at Puppet. As it stands today we version control all server configurations in a repository that is held internally ...
6
votes
3answers
4k views

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" ...
8
votes
4answers
5k views

How to set up Cobbler with Puppet or Cfengine?

I've heard a lot about using Cobbler together with Puppet/Cfengine for rapid deployment & configuration. Can you point me to some tutorials or share you experience of how you do it? Would also ...
2
votes
4answers
6k views

How to fix Puppet fully-qualified parameter path error?

I regularly but randomly get the following error message when I run the puppet client on machines (non-daemonized): err: Could not create : Parameter path failed: File paths must be fully qualified ...
17
votes
4answers
25k views

puppet: force service restart after configuration file was modified

how can i ensure that if new version of configuration file is downloaded via puppet from master repository to one of managed servers relevant service is restarted. typical scenario - let's say there ...
6
votes
3answers
573 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 ...
8
votes
3answers
5k views

Call Puppet function from Puppet template?

As of 0.24.8, can a Puppet template call a Puppet function? I can get similar functionality by calling the function in my manifest, assigning the return value to a variable, and then using the ...