Questions tagged [puppet]

Puppet is a ruby-based Configuration Management system incorporating a model-driven DSL. Its purpose is to provide configuration file enforcement, service state monitoring, package installation and other server-side management.

Puppet is a ruby-based Configuration Management system made by Puppet Labs.

Puppet has its own DSL, a model-driven language.

Its purpose is to provide configuration file enforcement, service state monitoring, package installation and other server-side management.

Functionality is provided by types. Out of the box, puppet comes with a number of commonly used types such as package, service and file.

It can be extended with modules available from the Forge.

Puppet is written in Ruby and licensed under the Apache v2 and the source code is avaliable on Github.

Useful Links:

See Also

4080 questions
19
votes
5 answers

How to source a file in puppet manifest from module

I am trying to source files from local modules in a puppet manifest (using puppet in standalone mode): file { '/home/repowt/.crontab': ensure => present, source => 'puppet:///modules/site/crontab'; } but I get: Could not evaluate: Could…
Viktor Trón
  • 8,774
  • 4
  • 45
  • 48
19
votes
3 answers

How to dynamically create an environment variable?

I am using powershell script to set some environment variable-- $env:FACTER_Variable_Name = $Variable_Value FACTER is for using these in the puppet scripts. My problem is - the variable name and variable value both are dynamic and getting read from…
Ankita13
  • 469
  • 2
  • 7
  • 21
19
votes
4 answers

Puppet - test if a package already defined?

I'm writing some puppet modules and have a package defined in two modules hence get the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate definition: Package[gnome-session-fallback] is already…
Mr Morphe
  • 664
  • 1
  • 7
  • 15
18
votes
5 answers

Chef and Puppet recommendations

I'd like to ask about when and in what circumstances you'd use puppet and when you'd use chef. I've also found rump which is a puppet-solo type of thing where you iterate a single server to its configuration and then push that to a series of…
Henrik
  • 9,714
  • 5
  • 53
  • 87
18
votes
3 answers

How can I stop and delete a docker container launched with restart always option?

I run some containers with the option --restart always. It works good, so good, that I have now difficulties to stop these containers now :) I tried : sudo docker stop container && sudo docker rm -f container But the container still restarts. The…
mperrin
  • 994
  • 1
  • 10
  • 19
18
votes
2 answers

Handling sensitive information with Puppet

What is the best way to store and handle sensitive information with puppet and safely distribute it to your nodes? The version I am using is 2.7. One example would be database passwords. Plain text passwords are needed on your application servers.…
stellard
  • 5,162
  • 9
  • 40
  • 62
18
votes
2 answers

puppet inheritance VS puppet composition

I just came cross puppet inheritance lately. A few questions around it: is it a good practice to use puppet inheritance? I've been told by some of the experienced puppet colleagues Inheritance in puppet is not very good, I was not quite…
Shengjie
  • 12,336
  • 29
  • 98
  • 139
17
votes
1 answer

Example Puppet setup for a rails stack? (nginx, varnish, thin, postgres, memcached, redis)

I'm just getting started with Puppet. The example walkthroughs and tutorials were good at helping me understand Puppet's usefulness and the basic toolset, but I'm having a hard time conceptualizing a full stack. Even the advanced tutorial didn't…
markquezada
  • 8,444
  • 6
  • 45
  • 52
17
votes
7 answers

recursively make directory tree in puppet without purging

I want to create the directory structure /var/www/apps/example/current/public if it doesn't exist using puppet. If it already exists I don't want to purge the contents of the directories. How do I do this? Below is what I have so far: file {…
Kyle Decot
  • 20,715
  • 39
  • 142
  • 263
17
votes
1 answer

How to use a template for configuration file in Puppet

I am new to Puppet and I am writing a module to setup configuration files. The problem is when multiple clients will be using my module they will have to edit it according to their system. I have heard that templates are way to solve this problem.…
maths
  • 1,399
  • 5
  • 23
  • 38
17
votes
1 answer

Can my Vagrant VMs use manifests with storeconfigs without a Puppet master?

I'm trying to set up a multi-VM Vagrant environment that spins up an OpenStack controller and a few OpenStack compute nodes and then provisions a VM or two on the compute nodes. Yes, I'm talking about VMs running on VMs. It sounds a little crazy,…
Philip Durbin
  • 4,042
  • 2
  • 25
  • 36
16
votes
3 answers

How do you pass an array to an erb template in ruby and have it iterated over?

I need some help with erb templates, I can't seem to get my head around passing an array and then iterating over it. My problem is this. I want to pass a few arrays: ` device => ["eth0", "br0"], ipaddr => ["192.168.12.166",…
matt
  • 805
  • 3
  • 9
  • 14
16
votes
4 answers

How can i install a local rpm using puppet

I am trying to install a particular rpm using puppet, my init.pp is: class nmap { package {'nmap': provider => 'rpm', source => "", } } and the rpm is in ...modules/nmap/files If i move the rpm to manifests, and…
kamal
  • 9,637
  • 30
  • 101
  • 168
16
votes
1 answer

What ports does pip use?

This is hopefully a quick one to answer, I'm trying to provision a box on AWS with puppet and one of the steps involves a pip install from a requirements file. Something like this: - /usr/local/venv/ostcms/bin/pip install -r…
David George
  • 183
  • 1
  • 1
  • 6
16
votes
9 answers

Does vagrant automatically install puppet?

I have this in my Vagrantfile: Vagrant.configure("2") do |config| config.vm.provision "puppet" end Yet, when I run puppet --version I get : [vagrant@vagrant-centos65 ~]$ puppet --version -bash: puppet: command not found Do I need to manually…
Eric Francis
  • 23,039
  • 31
  • 88
  • 122