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

learn more… | top users | synonyms

0
votes
3answers
1k views

How can I fix puppet refusing to start and asking for “master.pp”?

I'm using the very latest version of puppet and have been following the Apress "Pro Puppet" guide step by step. I have installed puppet sudo aptitude install ruby libshadow-ruby1.8 sudo aptitude ...
1
vote
3answers
633 views

Git: push via ssh to a root owned repository with ssh root logins disabled

is that even possible? Summary, i'm running puppet master on a server and ideally we want root logins via ssh disabled, we want to force all access via sudo if root access required however we have ...
0
votes
1answer
400 views

puppet on amazon ec2: could not change hostname

I'm running ec2 debian instance and trying to get puppet working on it. I'd like my hostnames to be something more readable, so I've changed /etc/hostname, run /etc/init.d/hostname.sh start and I can ...
3
votes
4answers
1k views

Recommendations on managing dot files for users using Puppet

Goal is to have a collection of dot files (.bashrc, .vimrc, etc.) in a central location. Once it's there, Puppet should push out the files to all managed servers. I initially was thinking of giving ...
8
votes
2answers
5k views

How do I provide dpkg configuration parameters to aptitude or apt-get?

When installing gitolite I find that: # aptitude install gitolite The following NEW packages will be installed: gitolite 0 packages upgraded, 1 newly installed, 0 to remove and 29 not upgraded. ...
2
votes
1answer
942 views

How do I add a provider for the package type in Puppet?

The puppet-rvm FAQ mentions that they didn't extend the package type because "it becomes harder to manage multiple Ruby versions and nearly impossible to install gems for a specific Ruby version". I ...
1
vote
1answer
1k views

cloudformation bootstrap with puppet and ubuntu server

I've looked over the Puppet Master Cloudformation Template and understand it is using CloudInit baked into the Amazon Linux AMI. However, I'd like to use an existing Ubuntu 11.10 server image and ...
3
votes
5answers
1k views

How to keep track of vm hosts and guests and IP addresses?

Internally, we have several VM hosts. We are constantly provisioning new guests on these hosts. What tool to you guys use to keep track of what hosts hosts you have out there, the host system stats, ...
5
votes
2answers
3k views

Patching with Puppet

I am new to Puppet, and I am wondering if it is an effective solution for patch/pkg management on Solaris as well as Linux. I am more interested on the Solaris side. So far am unable to locate any ...
3
votes
4answers
732 views

Puppet: Organizing module dependencies (copy file if package is present)

I've got some servers (www, etc) I've got a monitoring system If a machine has to be apache monitored it needs some files to be installed. So I've got a apache module (which installs Apache) and I'm ...
13
votes
1answer
3k views

Puppet: ensure a file is empty

I would like to be sure that the motd file is empty. I would love to do like this: file { "/etc/motd": ensure => empty } This obviously does not work. Is there a simple way to ensure a file ...
2
votes
3answers
2k views

Specifying prerequisites for Puppet custom facts?

I have written a custom Puppet fact that requires the biosdevname tool to be installed. I'm not sure how to set things up correctly such that this tool will be installed before facter tries to ...
0
votes
1answer
89 views

Using Puppet, is it possible to define which plugins gets sync with a particular client?

I have a plugin that gets pushed to all clients. However, I have one that's specific to a particular module, hence I don't want it synced with all my clients. My generic plugin is stored in /etc/...
6
votes
2answers
4k views

Puppet: Checking sets of variables

Edit: I have come up with what I think is the best way to go about this. Thanks to the people answered my question - it helped along the way. I'm going to post my solution so that others can find it ...
5
votes
1answer
1k views

Puppet agent using 100% CPU, on a single node for an hour

Puppet seems to peg the CPU when I try to do a recursive deploy of a directory into a folder that already has a substantial number of files. The the provider used by the user resource on my systems ...
1
vote
0answers
685 views

Hashes with Puppet and templates

I did this: $worker_name = { "app-fr" => { host => [ "app01/10.2.0.1/8009", "app02/10.2.0.2/8009" ] }, "app-uk" => { host => [ "app09/10.2.0.5/8009", "app10/10....
0
votes
1answer
1k views

puppet dashboard fails to start

So here's the situation. I'm running Puppet on CentOS 5.7 64-bit, and on the puppet master I also have puppet-dashboard, however when I try to start it, I see the following: [root@puptest-master ...
8
votes
1answer
6k 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 => '/etc/...
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
807 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
270 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
800 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 ...
11
votes
3answers
14k 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 ...
12
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 ~/.ssh/...
1
vote
3answers
7k 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
538 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
216 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
983 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
2k 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
241 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
687 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
419 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
1k 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
2k 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
631 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
2k 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: /etc/puppet/modules/mymodule/lib/puppet/type/mytype....
1
vote
1answer
649 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
25k 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. So,...
4
votes
3answers
999 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
260 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?