Questions tagged [puppet]

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

Puppet is a configuration management tool for Unix and Windows. It works either standalone mode (puppet apply) or in client-server mode (puppet agent) with puppet agents running on client systems checking in with the master daemon on the server on a regular basis. Puppet's written in ruby, and puppet source code, i.e. puppet manifests, uses its own domain-specific language that focuses on declaring the system resources and it's intended state.

Combined with system provisioning tools (PXE, kickstart, FAI, etc), puppet can fully automate any software installation and configuration process that doesn't require a GUI interface.

More info:

Related:

1792 questions
13
votes
1 answer

Why is r10k called r10k?

I am using r10k for a while now. I wonder what r10k means. Questions Why is the tool called r10k? Where does it stand for? Attempts to answer the question Neither the puppet docs, nor the internet indicates where r10k stands for
030
  • 5,901
  • 13
  • 68
  • 110
13
votes
3 answers

Notified when a file controlled by puppet is going to be changed by yum

Is it possible to receive a notification on the console when a package containing a file that is controlled by puppet is about to change that file? Meaning, in yum when doing yum update, is it possible to inject a custom warning?
Engineer2021
  • 601
  • 8
  • 25
13
votes
5 answers

Fixing services that have been disabled in /etc/default/ with puppet?

I'm using puppet to (theoretically) get npcd to start upon installation, however on Ubuntu, that service comes installed with the default setting in /etc/default/npcd of RUN="no": $ cat /etc/default/npcd # Default settings for the NPCD init…
Matt Simmons
  • 20,396
  • 10
  • 68
  • 116
13
votes
4 answers

Puppet: Get users home directory

I am creating a user as follow user { $username: comment => "$name", shell => "$shell", managehome => false, password => "$password", groups => $groups } Now as u can see I am doing a managehome is false Now later down the…
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
13
votes
2 answers

Puppet: how to create and manage unix users and groups

This last week I spent all effort into learning Puppet. Now I suffer from a mental buffer overflow and little confidence of ever being able to tame this beast. I came across many annotated examples but due to their countless variations I fail to…
drumfire
  • 1,699
  • 3
  • 14
  • 21
13
votes
4 answers

In Puppet, how would I secure a password variable (in this case a MySQL password)?

I am using Puppet to provision MySQL with a parameterised class: class mysql::server( $password ) { package { 'mysql-server': ensure => installed } package { 'mysql': ensure => installed } service { 'mysqld': …
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
12
votes
1 answer

Puppet error: returned 1 instead of one of [0]

When using Puppet, I get error messages like returned 1 instead of one of [0] Is there a way to output/get the actual error message?
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
12
votes
4 answers

how to set path when applying single puppet module?

I'm trying to run a single module like this: puppet apply --verbose --modulepath=moduleshere --noop -e 'include myclass' However, I get this kind of error, indicating the path is not set Parameter unless failed: '[ -e "${logfile}" ]' is not…
Goat Hess
  • 121
  • 1
  • 1
  • 3
12
votes
4 answers

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/authorized_keys file ends up containing a mix of keys from…
Dylan Tack
  • 223
  • 2
  • 7
12
votes
3 answers

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 Linux and admnistrator in Windows), we have a…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
12
votes
2 answers

Why should I use a puppet parameterized class?

Generally when working with complex puppet modules, I will set variables at the node level or inside a class. e.g., node 'foo.com' { $file_owner = "larry" include bar } class bar { $file_name = "larry.txt" include do_stuff } class…
robbyt
  • 1,642
  • 3
  • 14
  • 26
11
votes
3 answers

Ansible, Chef, Puppet or ____ : Which has the strongest Windows support and smallest init footprint

We do mostly (but not exclusively) win servers. Preferably, we can start the OS and do little or nothing to it to make it ready to receive commands (we know we may need to create a base image with an agent or ssh server on it). Need to be able to…
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
11
votes
3 answers

Can Puppet File Source be from a web service?

Is there a (simple) way to have puppet use a file available on the internet for the Source property of a File? eg: file { "/home/text.txt": source => [ "http://www.example.com/text.txt", ] }
gunwin
  • 6,400
  • 3
  • 19
  • 22
11
votes
4 answers

puppet only exec when file does NOT exist

I only want to exec following command when file (/usr/local/bin/papply) does not exist. not sure what to put there. exec { 'git add url': command =>'git remote add origin https://github.com/testing/puppet.git', require =>…
qinking126
  • 351
  • 1
  • 4
  • 12
11
votes
2 answers

How to get puppet to stop on the first error in a Manifest?

How do you configure puppet to just stop on the first failure instead of continuing on and just spewing errors for the rest of the steps that depends on the first failure?
user35861