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

Pass variable to puppet on commandline

I'm trying to get TeamCity to trigger a deployment with puppet via the commandline using puppet.bat on Windows. In Teamcity I'm calling this using a Command Line runner, with Command executable: C:\Program Files (x86)\Puppet…
Grant Trevor
  • 1,052
  • 9
  • 23
9
votes
2 answers

How to work with Puppet dependencies when installing Nginx 1.0.5 on Ubuntu 11.04

I'm new to Puppet and have a question about working with dependencies. I'm using Puppet to install Nginx 1.0.5 on Ubuntu 11.04. It requires adding a new apt repository since natty normally comes with Nginx 0.8. At the commandline, the install goes…
richardkmiller
  • 2,902
  • 3
  • 31
  • 29
9
votes
3 answers

Certificate Verify Failed [unable to get local issuer certificate for CN=puppetmaster.example.com]

When trying to run the following command from puppet agent node: puppet agent --test --verbose The following error was prompted Error: certificate verify failed [unable to get local issuer certificate for CN=puppetmaster.example.com] I have…
shubham singh
  • 511
  • 1
  • 5
  • 16
9
votes
1 answer

Puppet Dashboard - Directory Index Forbidden

I also have issue on launching the Puppet Dashboard UI, Below is my config file. can anyone help me on this issue please. Error I am getting : [Thu Aug 20 05:25:09 2015] [error] [client 192.168.XXX.XXX] Directory index forbidden by Options…
9
votes
2 answers

Vagrant: Get name of host OS

We have a Vagrant set-up running Ubuntu 12.04 as the guest OS across our team where the host OS is Windows 7 or 8. What I'd like to be able to do is to is to get the hostname of the Windows host machine and append this to the Vagrant hostname during…
Adrian Walls
  • 852
  • 3
  • 19
  • 31
9
votes
3 answers

How do you securely store TLS/SSL key files in Git for Puppet?

How would you securely commit you TLS/SSL keys for your HTTP into source control so they could be consumed by Puppet? What tools and practices do you use to encrypt/decrypt these files? Particularly, which tools make this easy to automate as much as…
Ricardo Gladwell
  • 3,770
  • 4
  • 38
  • 59
9
votes
4 answers

How to Manage Environment Variables for Continuous Deployment

So, a common practice these days is to put connection strings & passwords as environment variables to avoid their being placed into a file. This is all fine and dandy, but I'm not sure how to make this work when trying to set up a continuous…
eikonomega
  • 1,971
  • 17
  • 28
9
votes
1 answer

How to change file through Vagrantfile

I am not sure if I should use Puppet for this. I update and install through provision.sh. My Vagrantfile Vagrant.configure("2") do |config| config.vm.box = "ubuntu32" config.vm.provision :shell, path: './provision.sh' config.vm.network…
shin
  • 31,901
  • 69
  • 184
  • 271
9
votes
2 answers

Why config files should't be changed line-by-line with Chef / Puppet?

Why is changing lines in configuration file considered an anti-pattern in Chef or Puppet? It's something like bad habit, as I understood. I assume that this file-editing is done in some idempotent way and with advanced tools (augeas for…
Michael Field
  • 2,092
  • 1
  • 17
  • 12
9
votes
2 answers

Puppet duplicate declaration: Class[Mongodb] is already declared; cannot redeclare

Possibly doing something extremely stupid here but I can't find any documentation on what could be causing this. Setting up a Vagrant VM using Puppet and I'm trying to override a specific setting within the mongodb module. As far as I'm aware the…
Josh Holloway
  • 1,683
  • 2
  • 13
  • 14
9
votes
2 answers

puppet recipe installing tarball

I would like to install apache maven by using puppet recipe, but I can not find anywhere an example on how to do this. Can someone help with this? Apache maven is packed as tar.gz file. I am using a stand-alone setup for puppet.
aki
  • 1,731
  • 2
  • 19
  • 24
8
votes
2 answers

How to output sorted hash in ruby template

I'm building a config file for one of our inline apps. Its essentially a json file. I'm having a lot of trouble getting puppet/ruby 1.8 to output the hash/json the same way each time. I'm currently using <%= require "json"; JSON.pretty_generate…
Gavin Mogan
  • 1,497
  • 1
  • 14
  • 21
8
votes
3 answers

Puppet wait for a service to be ready

I am using Puppet for machines provisioning. I have a service running in Tomcat 6 app server and another manifest being dependant on that service (sending some REST requests as part of the installation). The problem is, the service is not available…
iNecas
  • 1,743
  • 1
  • 13
  • 16
8
votes
1 answer

Puppet Include vs Class and Best Practices

When should I be using an include vs a class declaration? I am exploring creating a profile module right now, but am struggling with methodology and how I should lay things out. A little background, I'm using the puppet-labs java module which can be…
Merakel
  • 167
  • 2
  • 2
  • 11
8
votes
1 answer

How to install multiple files with a single File-resource

I need to install a number of files into a directory, which is not itself Puppet-managed. The source of each file is under files/ subdirectory of my module. I'd like to install them all in one go, because their ownership and permissions are all the…
Mikhail T.
  • 3,043
  • 3
  • 29
  • 46