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

learn more… | top users | synonyms

6
votes
1answer
4k views

How do I recursively mirror a directory and its contents with puppet?

Let's say I have a module with files/etc/foo/{conf0, conf1, conf2, conf3, etc}. It's simple enough to place each of these files when the number of them is small: file { 'conf0': path => ...
7
votes
2answers
2k views

How to call a puppet filetemplate twice with different parameters without using define?

i try to create two different files with one template, because they only diff by one line. file { "/tmp/bootstrap-raid.sh": content => template("pxe/bootstrap.sh.erb"), } file { ...
1
vote
2answers
773 views

Use Puppet to deploy files to all user's home directory

I want to deploy a simple text file (a git commit message template) to each user's home directory using Puppet. I came across this post which seems very close, but the part I'm not clear on is how do ...
0
votes
1answer
259 views

Puppet package provider relocatable RPM

Is it possible to pass a new root install location to an RPM via puppets package provider? I've got a relocatable package that I want to override the install location on and would rather do it via the ...
2
votes
2answers
2k views

Puppet restarts services twice — can it be fixed?

When service is described with both ensure => running and subscribed to config file changes if both conditions fulfil (i.e. it is not running and config file changed) it gets (re)started twice. Is ...
5
votes
1answer
729 views

Install single SSH key multiple times on single machine via puppet

I want to have one place where I have defined ssh keys for my users. These users can be in different (multiple) roles on single server. So I defined ssh_authorized_key as virtual and then wanted to ...
10
votes
3answers
12k views

How to add multiple dns names to my puppetmaster?

my puppet.conf on the master [master] certname = myname.mydomain.com ca_server = myname.mydomain.com certdnsnames = puppet;puppet.local;myname.dyndns.org;hivemind.local; for my understanding with ...
2
votes
3answers
2k views

puppet exclude module

i have created a base class for all the servers in puppet, class centos_base { include chkconfig include hosts include inittab include nscd include nsswitch ...
1
vote
2answers
4k views

How can I install packages from the RHEL6's Optional Channel via Kickstart?

I typically install puppet via kickstart. Apparently, puppet now requires a package (libselinux-ruby) that is included in the Red Hat's Optional Channel. I was under the impression I could only use ...
11
votes
4answers
5k views

Using Puppet to remove SSH keys not explicitly allowed

I'm using puppet to distribute SSH keys, like so: ssh_authorized_key { "alice@foo.com": ensure => present, key => 'xxxx', type => 'ssh-rsa', user => 'deploy', } The ...
1
vote
3answers
6k views

Appending a line to a file if it doesn't exist using Puppet

I've got a defined resource type to append a line to a file if it doesn't exist, as per below: define appendLineToFile($file, $line, $user) { exec { "echo \"\\n$line\" >> \"$file\"": ...
3
votes
3answers
524 views

Puppet, setting dependencies

I am starting to setup puppet. I want to set up a dependencies that a mail transfer agent must be installed before that class tries to install or start anything. With puppet, the standard method ...
9
votes
3answers
5k views

Managing iptables with Puppet

The idea of managing our iptables rules with Puppet has been brought up. I see that augeas has an iptables lense but it is currently experimental. Does anyone have any suggestions as to how to handle ...
4
votes
2answers
1k views

Puppet auditing of file resource not working

I just can't seem to get this to work at all. I want to have puppet send a log message that shows up in the reports whenever a file changes. This seems so simple from what I've heard and read, but ...
1
vote
1answer
214 views

Installed ruby from source on debian, apt-get no longer works due to failed dependencies, how do I fix it?

I installed ruby from source, and everything ruby related seems to work just fine. I can't install anything that depends on ruby using apt because I don't want 2 versions of ruby installed. After I ...
2
votes
2answers
932 views

use local file as puppet template

I'm developer of a java software and try to find a smart way to get my app distributed and configured in our datacenter. For that, I build an rpm package and we have set up a satellite. Target OS is ...
12
votes
3answers
1k views

Server credential management for Linux and Windows

We are a relatively small shop (as far as number of sysadmins) with a mix of RHEL, Solaris, Windows 2003 and Windows 2008 servers; about 200 servers in all. For our administrator accounts (root in ...
3
votes
3answers
2k views

Enforcing hashed home directory permissions with puppet

Home directories in our environment are hashed using the first two letters of a username. For example, the home directory for user lars is /home/l/a/lars. I would like to use puppet to enforce mode ...
1
vote
0answers
238 views

puppet dashboard upgrade is failing

following this page: Not able to get the latest puppet dashboard installed.... http://docs.puppetlabs.com/dashboard/manual/1.2/upgrading.html#upgrading-code Commands typing: git init rm .gitignore ...
5
votes
3answers
630 views

How do I prevent puppet interfering with manual server changes

A lot of our server configuration is managed via puppet. Puppet runs every 15 minutes via cron and applies configuration changes. If a server has problems I sometimes need to change configuration ...
2
votes
2answers
412 views

Puppet parameter lookup

I would like to know if it is possible to lookup the value of another Puppet resource, something like the following example: define foo( $username ) { $home = User[$username].home .... } ...
0
votes
3answers
6k views

puppet execute remote script on all servers

how can i execute a python script on all puppet clients. i have added a class for the script to be executed class curp { exec { "/usr/src/scripts/curp.py": } } and included it in nodes.pp ...
0
votes
1answer
1k views

puppet startup error

For some reason, not able to start puppet client... Have removed /var/lib/puppet and /etc/puppet/ssl... resigned the cert, same problem.... puppetd --no-daemonize --debug --server puppet debug: ...
2
votes
1answer
9k views

How to organize nodes.pp file to group class/define?

How to group some class / define in the node.pp file? node 'node1' { ntp { ntp: server_is => "node" } dns_resolv { dns: server_is => "node" ...
1
vote
1answer
988 views

How to create a user with Puppet

I am trying to create a user with Puppet but everything I have been trying has failed. I am trying to create a user named "capistrano" that will be placed in the "www-data" group. I have done the ...
1
vote
1answer
1k views

using puppet host resource with hiera data source

I'm trying to implement puppet /etc/hosts handling using hiera as data source, but my current implementation requires data duplication because I could pass only array of strings as $name to host ...
2
votes
3answers
2k views

emulate fabric/capistrano with puppet or chef

i have a few remote environments where i can only connect from outside but not from inside to outside. for my deployments/configuration needs i used fabric and capistrano that works fine but I have ...
2
votes
2answers
606 views

Accessing node variable in class and using it in a conditionnal

I am trying to configure Apache Virtual Hosts with Puppet and have been trying different things with little success. I have defined a node as the following : node 'test1.cob' inherits serveurClient ...
1
vote
3answers
1k views

What determines Puppet pluginsync directory structure on clients?

I'm using puppet 2.6.8. I've got pluginsync=true on both master and client. I've created a module and a type which lives on the puppetmaster at: ...
1
vote
1answer
614 views

Puppet can't access MySQL meta-information even when root

When running: $ sudo puppetd --verbose --no-daemonize -o I get errors such as: err: //webserver/Mysql::Rights[Setup SW Database]/Mysql_user[scraperwiki@localhost]: Failed to retrieve current state ...
8
votes
5answers
23k views

How to deploy applications (in .tar.gz) with Puppet?

I'm a beginner with Puppet and I would like to know if I'm on the right way to deploy applications with Puppet. The applciations are in a tar.gz file which contains a file with the version number. ...
4
votes
3answers
951 views

Problems validating Puppet manifests with “puppet parser validate”

I'm using puppet parser validate in a git pre-commit hook in order to spot problems before committing files to our Puppet configuration repository. Unfortunately, this command appears to be a very ...
2
votes
1answer
258 views

Multiple Masters For Puppet

I would like to have a master puppet server for each of my physical locations. However, I don't want to have to maintain them separately. Is there a good model/method for this with puppet?
1
vote
2answers
817 views

Upgrade the Ubuntu puppet package within kickstart process

My Ubuntu based kickstart-host is almost working like it should, serving Ubuntu 10.04 (both i386 & amd64) and CentOS 5.6 to new (VMware-)hosts. One of the things that bothers me is that Ubuntu ...
0
votes
4answers
2k views

Puppet agent failing

I am not able to get puppet agent running. I've tried removing /etc/puppet/ssl on the client, and ./puppetca --clean on the server. Nothing worked. notice: Starting Puppet client version 2.6.8 ...
0
votes
3answers
85 views

How to give a name to File{} for next steps whith “require” on Puppet?

Give an alias for a file seems to work. As example, the file which the name "tomcat_dir" could be used for next steps with " require => File["tomcat_dir"] " : file {"tomcat_dir": ...
4
votes
3answers
8k views

Can I run a shell built-in command with Puppet?

I want ~/.bashrc will be source whenever changing its content. I created a bashrc class with something like this: file { "/root/.bashrc": ensure => present, owner => root, group ...
1
vote
2answers
3k views

Adding a yum repo with puppet - Error 400 on SERVER: Invalid parameter enable at curly bracket?

I'm trying to automate some tasks when receiving a new server. The first thing is adding some yum repos. My /etc/puppet/modules/repo/manifests/init.pp: 1 class repo { 2 file { ...
7
votes
2answers
2k views

Puppet configuration using augeas fails if combined with notify

I'm having a problem with the following Puppet manifest, which is meant to enable the passwdqc pam module on a RHEL-6 system (this is using Puppet 0.25.5 and augeas 0.7.2): augeas { 'authconfig': ...
2
votes
3answers
3k views

How to set variables with basenode (in nodes.pp)?

I'm trying Puppet and it seems to be good. My question is very easy but I can't answer. I have a file "node.pp" : node basenode { include "dns" # include "ntp" } node ...
2
votes
1answer
434 views

puppet: nagios hosts file keeps having duplicates added

We have a puppet set up using the nagios types. Mostly it works fine, but sometimes I find that the generated puppet-hosts.cfg file keeps growing - the hosts are just added and re-added ad nauseam. ...
2
votes
2answers
235 views

Is it possible to use the Puppet inventory for puppet modules and other systems?

I'm diving into Puppet in our environment and I'm realizing there are many files I'd like to build that use Puppet Facts and inventory data about our environment. Is it possible, for example, to ...
6
votes
3answers
4k views

Using Puppet to install software “bundles”

We're in the process of researching a configuration/systems management implementation and we've done quite a lot of demoing of Puppet. Puppet seems to excel at the somewhat simple "ensure this ...
1
vote
3answers
5k views

Puppet: variable overriding best practices

I'm wondering what are best practices for overriding variables in puppet. I'd like to have all my nodes (which located in different places, some of them are qa, some live) with same classes. Now I ...
3
votes
4answers
783 views

Reference of Built-In Puppet Facts

Is there a reference for the facts that are included in a default puppet installation? For example, some examples I see include $operatingsystem which can be used to identify the distribution. Is ...
6
votes
2answers
4k views

What's the difference between include and require in puppet

I have a class in puppet if I have the following code: class A { require B .... } I get circular dependencies error. If I have: class A { include B .... } everything works fine
2
votes
1answer
893 views

How do I install puppet automatically on image startup?

I'm working on setting up a new Ubuntu 10.04 (lucid) cluster in the Rackspace cloud environment. I'm using Puppet for the first time to automate as much as I can. I've setup a puppet master and I'm ...
9
votes
2answers
2k views

Installing open-vm-tools in Ubuntu via Puppet; what's the lesser evil?

In an ideal world, configuring puppet to install the open-vm-tools should be as simple as this: class vm-tools { package { 'open-vm-tools': ensure => installed } package { ...
8
votes
2answers
4k views

Migrating puppet clients to new puppetmaster

How can I migrate our existing puppet clients to point to a new puppetmaster server? I'd rather not manually go to each client box and generate a new certificate. When trying the obvious -- rsync all ...
0
votes
2answers
1k views

Puppet - Update packages on repo installation

I am attempting to have puppet (0.25.5-1.el5) update an already installed package when a new yum repo gets installed. The basic image we have has package X installed at version 1.1 by default. In ...