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

How do I deal with puppet modules with classes of the same name?

I have a puppet module that uses gini-archive. Recently I change my module to depend on biemond-wildfly, which depends on nanliu-archive. However, I can't install nanliu-archive, because both of these archive modules install into a directory called…
stripybadger
  • 4,539
  • 3
  • 19
  • 26
8
votes
2 answers

How to run the same class multiple times?

I have a puppet module which deploys a JAR file and writes some properties files (by using ERB templates). Recently we added a "mode" feature to the application, meaning the application can run in different modes depending on the values entered in…
8
votes
2 answers

Vagrant Share - Accessing Virtual Hosts and accessing those that are not in the default web root

I have Vagrant setup and running CentOS 6.5 x64 and it runs great. No issues running multiple sites within this one VM. All sites are running from the /var/www/public folder with the exception of PhpMyAdmin which runs from /var/www/html. I am…
cOp
  • 629
  • 6
  • 7
8
votes
2 answers

How do I speed up my puppet module development-testing cycle?

I'm looking for some best practices on how to increase my productivity when writing new puppet modules. My workflow looks like this right now: vagrant up Make changes/fixes vagrant provision Find mistakes/errors, GOTO 2 After I get through all…
olore
  • 4,687
  • 3
  • 28
  • 40
8
votes
3 answers

How do I make puppet copy a file only if source exists?

I am trying to provision a vagrant VM to allow users to supply their own bash_profile.local but I don't want this file tracked in the vm's vcs repo. I have a tracked bash_profile.local.dist file that they can rename. How can I tell puppet to only…
pdizz
  • 4,100
  • 4
  • 28
  • 42
8
votes
4 answers

puppet template remove the last comma

I have the following puppet example template: { "servers" : [ { "port" : 9200, "host" : "localhost", "queries" : [ <% @markets.each do |market| -%> { "outputWriters" : [ { "@class" :…
David Portabella
  • 12,390
  • 27
  • 101
  • 182
8
votes
1 answer

Puppet issue with apt::source and stages

I have a local Puppet installation on which I've done: # puppet module install puppetlabs/apt Preparing to install into /etc/puppet/modules ... Downloading from http://forge.puppetlabs.com ... Installing -- do not…
Unknown
  • 5,722
  • 5
  • 43
  • 64
8
votes
1 answer

Manage Keys with Puppet for puppet-vcsrepo

I'm setting up some server configuration in my company and we have some internal repositories that run over ssh through bzr that I need to get. I wanted to use puppet-vcsrepo to pull these in and I saw that it has a way we can use a keyfile to get…
Allen
  • 794
  • 1
  • 6
  • 19
8
votes
1 answer

Puppet exec command runs in shell, but not via puppet

I'm trying to use vagrant to set up a dev environment that automatically clones two repositories if they haven't already been cloned. I wrote a simple script to clone the repos, after failing in many, many ways to get puppet to run the git command…
jeremiahs
  • 3,985
  • 8
  • 25
  • 30
8
votes
2 answers

How to log puppet agent and master

Puppet writes logging by default to syslog. Why is that? Most software write to some separate logfile. I checked the documentation and there is a mention that you can write to a log file but there was a mention that "This is generally not used." Is…
palto
  • 3,523
  • 5
  • 32
  • 38
7
votes
3 answers

Sourcing Puppet files from outside of modules

I'm installing a package from a module (Nginx in this specific case) and would like to include a configuration file from outside of the module, i.e. from a top level files directory parallel to the top level manifests directory. I don't see any way…
bennylope
  • 1,113
  • 2
  • 13
  • 24
7
votes
1 answer

Is it possible to "assert" in Puppet?

Is there a way to assert that a variable (or more specifically, a fact) in puppet has a particular value, and to abort the installation if it doesn't? For background, here is the situation: In most cases I can refer to hostnames, but sometimes I…
Joe Shaw
  • 22,066
  • 16
  • 70
  • 92
7
votes
1 answer

Does Puppet Bolt have the same feature set as Red Hat Ansible?

I was at a conference yesterday speaking with some folks about Puppet Lab's Bolt 1.0. I'm trying to figure out whether the tools is comparable to Ansible, but can take advantage of all the puppet modules that already exist or if it is different in…
Jeef
  • 26,861
  • 21
  • 78
  • 156
7
votes
1 answer

Access hiera scope from Puppet custom type

I'm building a custom type and I'm unable to get access to the hiera scope from a defaultto block module Puppet require 'puppet/parser/functions/hiera' newtype(:my_type) do ensurable newparam(:myparam) do defaultto {…
Raul Andres
  • 3,766
  • 15
  • 24
7
votes
1 answer

How to store linux command output into a variable in puppet

Is it possible to store a linux command result in variable? I am trying to store an encrypted value in a variable. To encrypt I am using base64 command. To store it in variable, I am using generate method. But I am not able to store a value.…
ArunRaj
  • 1,780
  • 2
  • 26
  • 48