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

Vagrant enters aborted state during apt-get update

I am running into troubles when performing an update through apt-get on a virtual machine bootstrapped using Vagrant. In particular, I have a working configuration (vagrantfile, puppet manifest, and whatsoever). However I need now to add an apt-get…
linuxbandit
  • 2,362
  • 1
  • 14
  • 13
7
votes
1 answer

What does :: mean or do in Puppet?

I know Puppet classes tend to be assigned with two colons. But I don't fully understand what the :: does. When are two colons necessary for defining a class in a Puppet file?
Propulsion
  • 503
  • 2
  • 4
  • 14
7
votes
1 answer

PuPHPet vs Puppet?

I've been using PuPHPet to setup development / staging hosting environments and it's made for very simple and efficient deployments. However, I'm running into a situation where I need to provide much more detailed directives in various server conf…
djt
  • 7,297
  • 11
  • 55
  • 102
7
votes
2 answers

In puppet, how to stop a service, perform some action and then start the service?

I need to perform some action (configure something) after stopping the tomcat service. Once the configuration is complete, I need to ensure that the tomcat service is up and running again. I have written following puppet code for the same: Service…
Anand Patel
  • 6,031
  • 11
  • 48
  • 67
7
votes
1 answer

How to Install a Vagrant Box on a Bare Metal Machine?

Is there an established way to take a Vagrant box and use it as the operating system for a "bare metal" machine, i.e. a normal computer and not a hypervisor, without having to sit through an installation process? Now I understand the common response…
codingking
  • 71
  • 1
  • 4
7
votes
4 answers

How to fix 'Could not parse for environment production' error?

Here is my little puppet snippet: when i execute this snippet i got the following error: err: Could not parse for environment production: Could not match   at /home/test.pp:8 $vendor = generate("/usr/bin/lsscsi") if defined($vendor) { if…
James Sapam
  • 16,036
  • 12
  • 50
  • 73
7
votes
3 answers

puppet - How do I append to path variable?

I have access to just a module for our team, where as the global manifests are maintained by infrastructure team. The PATH variable gets set in the global manifests. I want to append to the PATH variable, but puppet ignores my exec block. file {…
manish
  • 315
  • 1
  • 3
  • 9
7
votes
2 answers

Automatic applications deployment

I want to automate applications/roles/features deployment (unattended) on Windows 2012 R2 Infrastructure, this project needs many hours of programming, this is why i'm asking here. I want to deploy the following applications and roles : Active…
Adeel ASIF
  • 3,354
  • 9
  • 27
  • 44
7
votes
7 answers

Facts.d - Pluginfacts could not be retrieved during puppet run

I've just upgraded my puppet environment from 3.4.2 to 3.4.3. through puppetlabs' apt repos. I was upgrading agent(s) and master. Doing an agent run leads to following error: Info: Retrieving pluginfacts Debug: Failed to load library 'msgpack' for…
ITL
  • 422
  • 1
  • 5
  • 17
7
votes
3 answers

Add A New Virtual Host to Apache on PUPHPET generated Wheezy VM

I used puphpet.com to quickly set up a Wheezy VM. The VM works great but I'd love the add another virtual host to Apache. According to the puphpet documentation: I have completely rewritten PuPHPet to take advantage of a built-in configuration…
Jeemusu
  • 10,415
  • 3
  • 42
  • 64
7
votes
0 answers

Vagrant puppet - unable to run composer install with private repository

So basically my issue is very similar to this question: Vagrant + Puppet: Unable to run composer install with private repository I am trying to get composer to install deployed applications on a Ubuntu 12.04 box using puppet. One of the packages I…
SwiftD
  • 5,769
  • 6
  • 43
  • 67
7
votes
2 answers

How to detect that a puppet run is complete

I need a way to detect that puppet has finished an initial run ( successfully ), so I can wait before launching other actions when spinning up machines on AWS EC2 and/or OpenStack. How can I check this? Some ideas floated so far are: have puppet…
stackdump
  • 718
  • 6
  • 9
7
votes
1 answer

Calling puppet defined resource with multiple parameters, multiple times

I've got a simple puppet defined resource that looks like this: define mything($number, $device, $otherthing) { file{"/place/${number}": ensure => directory } mount { "/place/${number}": device => $device, ensure…
growse
  • 3,554
  • 9
  • 43
  • 66
7
votes
2 answers

Auto setting xdebug.remote_host ip address with vagrant/puppet

I'm in the process of setting up a Vagrant environment using puppet for provisioning. I'm stuck with one issue, I would like xdebug to 'just work' when running vagrant up however I need to specify the host machines ip address in the php.ini file…
greg
  • 6,853
  • 15
  • 58
  • 71
7
votes
2 answers

puppetlabs/postgresql examples not working

I am trying to use the puppet module puppetlabs/postgresql. I am very confused as to how to use it. Anyone can give me an example ? the documentation tells to create the class with settings but i am not sure where to create the class, I was under…
Abu Hamdan
  • 93
  • 2
  • 4