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
11
votes
1 answer

How to clone from a github repo and then run npm install on puppet

I have worked out how to fire up a vagrant box and apt-get install packages I now want to git clone a node.js repo from github before running npm install and running the app with node app.js I expected to be able to achieve this by issuing BASH…
Fergie
  • 5,933
  • 7
  • 38
  • 42
11
votes
3 answers

vagrant puppet modulepath

Puppet 2.7.19 Vagrant version 1.0.6 VM OS Ubuntu 12.04 I am attempting to set the puppet module path from vagrant. Which seems like it should be very simple. In my Vagrant file I have: Vagrant::Config.run do |config| config.vm.provision :puppet,…
Michael
  • 3,568
  • 3
  • 37
  • 50
11
votes
5 answers

Setting environment variables with puppet

I'm trying to work out the best way to set some environment variables with puppet. I could use exec and just do export VAR=blah. However, that would only last for the current session. I also thought about just adding it onto the end of a file such…
Jake232
  • 227
  • 1
  • 5
  • 11
11
votes
3 answers

puppet how to make puppet to wait for a few seconds

I would like to run a webservice and wait for a few seconds after to get the result. What is the best way to achieve a wait in puppet ?
icn
  • 17,126
  • 39
  • 105
  • 141
11
votes
2 answers

convert ip address to 32 bit integer in ruby

I am trying to find a way to convert a ip address to a 32 bit integer in Ruby for a puppet template. This is how I did the conversion in bash. root@ubuntu-server2:~# cat test.sh #!/bin/bash #eth0 address is 10.0.2.15 privip=`ifconfig eth0 | grep…
Chandler Cord
  • 111
  • 1
  • 3
11
votes
2 answers

Puppet 2.7: Calling puppet apply init.pp does nothing - why?

Directory and file layout as follows: app_test/ app_test/manifests app_test/manifests/init.pp app_test/manifests/test.pp Contents of init.pp: class app_test { include app_test::test } Contents of test.pp: class app_test::test { exec {…
KomodoDave
  • 7,239
  • 10
  • 60
  • 92
11
votes
5 answers

MongoDB command line to show if a user exists (for puppet 'unless' clause)

We are using MongoDB user based authentication, and I want to quickly run a command to check whether a user has already been created in the database, in order that puppet won't repeatedly attempt to create the user. Here is how we check if the…
leonigmig
  • 2,736
  • 3
  • 25
  • 21
10
votes
4 answers

Alternatives to Chef/Fabric/Puppet for Simple LAMP Development?

I've finally committed to really learning the software design process correctly in order to advance my skills and grow my business. This means embracing version control (git), setting up a development-staging-production environment and keeping…
youderian
  • 101
  • 1
  • 4
10
votes
1 answer

Puppet how to tell if a variable is set

In a puppet class how should I test if a variable has been set or not? Right now I am just checking if a variable is undefined: if $http_port != undef { $run_command = "$run_command --http-port $http_port" } Is there a better way to check if a…
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104
10
votes
6 answers

How to automatically set up a development environment?

I have been tasked to set up a Java based development environment across multiple Windows machines. The problem is that I want to the process to be done automatically and easily on each machine so the developers don't have to waste time downloading…
Nadav
  • 1,792
  • 2
  • 16
  • 20
10
votes
3 answers

How to provision a VM using Vagrant, Chef and/or Puppet with machine specific SSL certificate?

I have a requirement, where I want to provision several Virtual Machine's with machine specific SSL certificates (generated using machine's IP/Host Name) required by a Java application. I can create these certificates with some names like…
Vishal Bhatt
  • 123
  • 1
  • 9
10
votes
1 answer

Using docker, puppet and jenkins for continuous delivery and PROD deployment

Need to setup infrastructure for a new project. Previously i have used puppet standalone with jenkins, but now i'm thinking about incorporating docker builds, so that i could push from dev to stage'ing to production without triggering a build, but…
gerasalus
  • 7,538
  • 6
  • 44
  • 66
10
votes
1 answer

pip install -r requirements.txt from puppet?

I have a pip style requirements.txt file I use for keeping track of my python dependencies, I'm moving my dev environment over to vagrant + puppet. So far I've been using the pip provider built into puppet to install individual packages like…
piohhmy
  • 103
  • 1
  • 4
10
votes
1 answer

Is there a Node.js based alternative to Puppet or Chef?

Basically, the title says it all: Is there a Node.js based alternative to provisioning tools such as Puppet or Chef?
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
10
votes
2 answers

Function in puppet for checking if a string contains another string

I would like to know if there is any way of checking if a string exists inside another string (ie contains function). I have been taken a look to http://forge.puppetlabs.com/puppetlabs/stdlib but I haven't found this specific function. Maybe this is…
hveiga
  • 6,725
  • 7
  • 54
  • 78