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
7
votes
2 answers

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': context =>…
larsks
  • 43,623
  • 14
  • 121
  • 180
7
votes
1 answer

How do I generate a response file to be used with apt-get or aptitude?

I need to install exim4 through puppet. Because this installation requires interactive configuration, I need a response file, but I don't know how to generate one. So, how do I generate a response file?
Daniel C. Sobral
  • 5,713
  • 6
  • 34
  • 48
7
votes
2 answers

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 will work a bit with different features, and the rest…
6
votes
1 answer

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 some custom partitioning. Question is, if better to…
SyRenity
  • 3,179
  • 11
  • 57
  • 79
6
votes
2 answers

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 changing hardware. In my case the hardware is pretty…
SyRenity
  • 3,179
  • 11
  • 57
  • 79
6
votes
4 answers

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 still be able to override this same item in some…
Alex F
  • 859
  • 1
  • 10
  • 17
6
votes
8 answers

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 alternate product that can be used to setup arbitrary…
Adrian
6
votes
1 answer

Puppet generated systemd unit files?

I expected the following to actually start my service: service{'legacy': ensure => running, start => "cd /vagrant/nginx-reverse-proxy/legacy && /usr/bin/bundle exec ruby app.rb -o 127.0.0.1 -e production -p ${port}", provider =>…
6
votes
2 answers

Create a file only if the directory exists?

I am trying to write the module where it creates the file if directory exists or else it shouldn't do anything. class puppetmodule{ exec { 'chk_dir_exists': command => 'test -d /usr/dir1', path => ["/usr/bin","/usr/sbin", "/bin"], }…
joe
  • 69
  • 1
  • 2
6
votes
1 answer

Copy folder and its subfolders from puppet master to agent

I'm trying to copy folder /vagrant/scripts and its sub-folders located on puppet master into the agent. I use the following config in the init.pp: file { '/home/vagrant/scripts': ensure => 'file', source => 'puppet:///modules/ycsb/scripts', …
hossein
  • 181
  • 1
  • 1
  • 8
6
votes
2 answers

On a puppet node, how do I see a list of resources?

Given access to a single node that is being managed by puppet enterprise, I want to view the list of resources that puppet is managing. How do I do that? Node OS is Ubuntu 14.04. Interested in PE versions 2, 3, and 2015.2. Thanks!
cat pants
  • 2,273
  • 10
  • 35
  • 46
6
votes
1 answer

Add two or more SSH keys to a user, in puppet

I need a solution to be able to add more than one SSH ´key´ to one user. class user { user { 'k': ensure => present, comment => 'bogo user', home => '/home/k', managehome => true } ssh_authorized_key { 'k_ssh': user => 'k', …
nicoX
  • 611
  • 9
  • 18
6
votes
1 answer

Puppet default node definition

I have some confusion about the default node. Will the classes defined in the default node only be applied if there is not other node definition, or do they get default and any other matching node definitions applied? For instance I have a…
usedTobeaMember
  • 616
  • 15
  • 25
6
votes
2 answers

How would we automate networking in a puppet environment?

Our infrastructure: we run a puppet master for about 250 nodes (about 100 hardware servers). The OS on the nodes itself is fully puppetized. Now we're looking into extending this puppet setup to the following domains: IP/DHCP management APC…
hansaplast
  • 197
  • 1
  • 2
  • 12
6
votes
2 answers

Basic puppet: Writing infrastructure configuration with an ENC, style, how-to?

I barely know enough Puppet to ask this question. I think I understand that the configuration for a particular node would consist of a collection of modules, with some node-specific glue. From the tutorials and documentation, it appears that the…
Mojo
  • 955
  • 2
  • 9
  • 24