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

In Puppet, how can I access a variable/attribute inside a defined type?

I would like to reference variables inside instances of defined types. For example, what can I do to reference $x and $y of foo a in bar b? define foo($x, $y) { } define bar($foo) { notify { "${::$foo::x}": } # <- how to make this…
Lodewijk Bogaards
  • 19,777
  • 3
  • 28
  • 52
6
votes
2 answers

How to set up custom bash environment for different users with puppet?

I'm just getting started with puppet (and vagrant) to set up the development environment for our team, which consists of 8+ developers, each of which have their particular bash configuration, etc. I've got all the software installed on the system to…
dino
  • 3,093
  • 4
  • 31
  • 50
6
votes
2 answers

Vagrant & Puppet - Provisioning Failing

I am taking my first Foray into using Vagrant + Puppet Provisioning scripts to improve my development workflow. I am currently trying to set up a dev box for L4 development - and am using the https://github.com/paolooo/vagrant-lamp and…
diagonalbatman
  • 17,340
  • 3
  • 31
  • 31
6
votes
4 answers

Deployment automation

I have a Lift application that is packaged as a WAR archive and must be deployed under Jetty. However, I want to be able to perform a few tasks automatically: Specify the target server(or collection of servers). I have multiple servers, from…
flavian
  • 28,161
  • 11
  • 65
  • 105
6
votes
2 answers

Why won't Vagrant ssh into my virtual box when I use `Vagrant Up` on Windows 7 command line?

Whenever I try to Vagrant Up it will load the box and do most everything right, but because I'm trying to use Puppet to provision this CentOS 6.3 minimal I need SSH to work during Vagrant Up (if I want it as autonomous as possible). I get the…
Nick
  • 487
  • 1
  • 4
  • 21
6
votes
1 answer

Dependency cycle with apt source

I'm trying to install the puppet module at https://github.com/dwerder/puppet-mongodb One of the requirements for it to work is to have the mongodb repository set-up. Since I'm trying to deploy it on Debian I tried using the following class to add…
Manuel Bernhardt
  • 3,135
  • 2
  • 29
  • 36
6
votes
2 answers

Vagrant, Puppet and nodejs module: throwing error on npm module installation

I have the following manifest: include nodejs package { 'serve': ensure => latest, provider => 'npm', } I am using the puppetlab node.js module: http://forge.puppetlabs.com/puppetlabs/nodejs Vagrantfile: Vagrant::Config.run do |config| …
Pickels
  • 33,902
  • 26
  • 118
  • 178
6
votes
7 answers

Is there really no easy way to test puppet scripts on a remote machine?

I'm experimenting with Puppet scripts for deployment. I find the hardest part about the process of writing those scripts is iteratively testing them. I don't want to puppet apply on my local development machine, that liable to screw stuff up. I have…
miracle2k
  • 29,597
  • 21
  • 65
  • 64
5
votes
2 answers

Puppet Execution Flow

I have this node.pp and I am wondering how puppet is going to execute it. node 'agent.puppet.demo' { include ssh include postfix include mysql include apache } On the agent node, when I run this: $ puppetd -t -d The puppet is not…
Carmen
  • 2,833
  • 4
  • 23
  • 23
5
votes
1 answer

Puppet does not add my service to start up

I have this puppet module (monit) in which I declare monit service to be enabled (a.k.a to be started when the machine booted) class monit { $configdir = "/etc/monit.d" package { "monit": ensure => installed; } service {…
Phương Nguyễn
  • 8,747
  • 15
  • 62
  • 96
5
votes
5 answers

How to show a summary of the last puppet agent run?

As Ubuntu administrator I want to know status of each or last puppet agent run. How can I check with cli? Can I write to logs each run in human readable format?
August Gerro
  • 103
  • 1
  • 1
  • 5
5
votes
2 answers

puppet adding array elements in a loop

I want something like this: $ssl_domains = ['dev.mydomain.com'] ['admin', 'api', 'web'].each |$site| { ['tom', 'jeff', 'harry'].each |$developer| { $ssl_domains << "$site.$developer.dev.mydomain.com" } } letsencrypt::certonly {…
AzHofi
  • 75
  • 2
  • 6
5
votes
1 answer

run multiple node instance on same node using pm2

I want to run 2 node.js application on single server , using pm2 and those application need to deploy via puppet.Could you please advise is this possible. Regards, Bala
mbm
  • 77
  • 1
  • 1
  • 4
5
votes
1 answer

Puppet code to download extract and install

I have a file at some web URL (http://www.somewhere.com/something.tar.gz). This is direct download link. I need a puppet code that would download this file, extract it and install the file. Can we do this using package {} in puppet?
Atmesh Mishra
  • 527
  • 10
  • 26
5
votes
1 answer

undefined method get_uptime for Facter::Util::Uptime:Module (NoMethodError)

I'm trying to setup a puppet node, but rubygems doesn't seem to behave. If I run facter on the cli via it's own binary (/usr/lib/ruby/gems/1.8/gems/facter-1.5.8/bin/facter), it works fine, but if I run it through the binary installed by rubygems…
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66