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
15
votes
4 answers

Good tool for automatic setup and deployment of Django projects

2021 update Today I'm using Ansible for this and other devops tasks. Along the way I've experimented with Chef, Puppet, Saltstack and Docker images, but I've found that for me, as a solo developer working in smaller projects, a lightweight tool…
oivvio
  • 3,026
  • 1
  • 34
  • 41
15
votes
2 answers

how to remove all /etc/*.txt files with puppet

this puppet manifest will remove the file /etc/file.txt if it exists: file { "/etc/file.txt": ensure => absent, } how to tell puppet to remove all files /etc/*.txt? according to the reference, it seems that puppet file does not allow…
David Portabella
  • 12,390
  • 27
  • 101
  • 182
15
votes
4 answers

access private VM from other computer over wifi

I have a private network VM for developing on my mac. I'd like for my android device to be able to communicate with the VM on my mac. Currently I can visit the IP defined in my Vagrantfile, 10.10.10.10, on my mac and access it just fine but I can't…
David
  • 10,418
  • 17
  • 72
  • 122
15
votes
5 answers

Can I install puppet modules through puppet manifest?

Primary goal is to add all puppet modules automatically, so that all dev-env's and prod-env could be started with one command. How can I install puppet modules through puppet manifest?
holms
  • 9,112
  • 14
  • 65
  • 95
15
votes
10 answers

Puppet - how to apply module to puppet client node?

just starting with Puppet, really new to this world. I have CentOS 6 Puppet Master CentOS 6 Puppet Client In Master have one module: puppet module list /etc/puppet/modules âââ mstanislav-yum (v1.0.0) So I want to apply same module to my puppet…
Rubendob
  • 1,614
  • 3
  • 22
  • 34
15
votes
4 answers

How to use Puppet parameterized classes to force order of resources applied?

The Puppetlabs docs state that in order for one class to require another class you should use the relationship chaining syntax and declare both classes in your outer nodes. I have a repo class which creates the yum repo definition that many packages…
Michelle
  • 2,155
  • 4
  • 26
  • 42
14
votes
4 answers

Parsing puppet-api yaml with python

I am creating a script which need to parse the yaml output that the puppet outputs. When I does a request agains example https://puppet:8140/production/catalog/my.testserver.no I will get some yaml back that looks something like: --- &id001…
xeor
  • 5,301
  • 5
  • 36
  • 59
14
votes
2 answers

Hiera command line: How do I view all data in the hierarchy for a given node?

just testing out hiera and I'd like to be able to view all the available data (variable=value pairs) in the hierarchy for a given node. My Hiera hierarchy is configured as: --- :backends: - yaml - json :yaml: :datadir:…
Dave F
  • 180
  • 1
  • 1
  • 8
14
votes
4 answers

Duplicate declaration of same resource defined in separate classes

I have a class definition which requires the build-essential package: class erlang($version = '17.3') { package { "build-essential": ensure => installed } ... } Another class in a different module also requires the build-essential…
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
14
votes
4 answers

Using Vagrant to manage development and production environments?

How are people handling simple automation (with puppet) for dev / prod environments with vagrant (ideally from the same vagrantfile)? Use case I'm trying to solve I would love to spin up the the production machine with vagrant if it isn't…
jcrichto
  • 141
  • 1
  • 5
14
votes
3 answers

Laravel 4 Permissions on a Vagrant box with Puppet

I have been using http://www.puphpet.com successfully to generate vagrant+puppet environments for a number of projects. Then this week I got tasked with writing a prototype for a project using Laravel 4. Since I'm not going to be the one working on…
Adrian
  • 1,370
  • 11
  • 21
14
votes
1 answer

How to convert array to comma separated string in Puppet 2.7

I am using Puppet 2.7 and I need to convert an array to comma separated list. $hosts_fqdn= ['host1','host2','host3'] And I need to convert it to desired result: 'host1,host2,host3' I guess that Puppet 3.2 offers lambda expression - reduce. But…
jaksky
  • 3,305
  • 4
  • 35
  • 68
14
votes
1 answer

check if a class exists

Is there a way to check in manifest files if a given class exists? I want to do something like this: class foo { if exists( Class["foo::${lsbdistcodename}"] ) { include foo::${lsbdistcodename} } } So I can easily add distrubution /…
Michael Krupp
  • 2,042
  • 3
  • 19
  • 36
14
votes
1 answer

Puppet -- Mount with Bind

I have a cluster of 500 linux boxes which now need to use the mount resource with the bind option (see man 8 mount) to support a chroot jail. The mount points need to be enforced and maintained after boot. I am unsure how to describe this state with…
thisfeller
  • 788
  • 1
  • 5
  • 15
13
votes
2 answers

puppet apt-get update only once before anything else?

I know the basics of ordering in puppet to run apt-get update before a specific package but would like to specify to just run apt-get update only once and then execute the rest of the puppet file. Is that possible? All of the ways listed Here need…
isimmons
  • 2,016
  • 2
  • 20
  • 32