Questions tagged [puppet]

Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language.

Puppet is a configuration management tool for Unix and Windows. It works either standalone mode (puppet apply) or in client-server mode (puppet agent) with puppet agents running on client systems checking in with the master daemon on the server on a regular basis. Puppet's written in ruby, and puppet source code, i.e. puppet manifests, uses its own domain-specific language that focuses on declaring the system resources and it's intended state.

Combined with system provisioning tools (PXE, kickstart, FAI, etc), puppet can fully automate any software installation and configuration process that doesn't require a GUI interface.

More info:

Related:

1792 questions
8
votes
2 answers

Puppet Testing if a file exist

Im looking for a way to test if a file exist in my client (just test not creation). I've found the way (File.exists) in chef but that wasn't simple with puppet. Thanks in advance.
bazic
  • 113
  • 1
  • 2
  • 4
8
votes
4 answers

Puppet: Running shell command when file (or package) is updated

I want to run mysql_tzinfo_to_sql whenever the tzinfo package (on Ubuntu Server) changes. I figured Puppet can take care of this. I thought that either Puppet would react to a change in the package version, or if not, then to a change in timestamps…
Mei
  • 4,590
  • 8
  • 45
  • 53
8
votes
3 answers

Deploy our own software using Puppet?

(Apologies in advance for the stupidity in this question. I'm normally a programmer, not a sysadmin, but I've taken it upon myself to automate some things, and clean up some other things which are automated but not in the prettiest way. :-) I've…
Ken
  • 81
  • 1
  • 2
8
votes
3 answers

Global vs local puppet management

Have anyone ever managed several geographically distributed systems with Puppet? I have several almost exactly similar deployments (except the server IP's), which management I'm looking to convert to Puppet. I have 2 options: Have each deployment…
SyRenity
  • 3,179
  • 11
  • 57
  • 79
7
votes
2 answers

puppet adding timestamp in file content

super new to puppet. Could not find good example of how to add timestamp in a file puppet.pp node '123' { file { '/tmp/hello': content => "hello world", } file { '/tmp/timestamped': content => 'date', } Just wanted to print…
johnsnow
  • 171
  • 1
  • 4
7
votes
4 answers

Can Puppet run a shell script (that it downloads from the master) without saving it?

I have a step in a Puppet module that roughly does the following to set up some application keys: file { '/root/setup_app_keys.sh': ensure => file, owner => 'root', group => 'root', mode => '0700', source =>…
smitelli
  • 1,214
  • 1
  • 10
  • 16
7
votes
3 answers

How to get Run Puppet button working on Foreman?

First of all, I know there is already a very similar question here on serverfault, but it doesn't quite answers my problem. So, my setup is the following: I have one server, running Ubuntu 14.04 LTS and puppet master 3.4.3 with foreman 1.6. The…
Florian
  • 111
  • 1
  • 2
  • 5
7
votes
1 answer

Puppet package "ensure => latest" doesn't always work

I have a unique situation where the Puppet package ensure => latest directive only worked on some of my systems. Out of 30 servers, the packages updated properly on all but 4. I'm trying to get major versions of the software suite from < 9.40 to…
ewwhite
  • 197,159
  • 92
  • 443
  • 809
7
votes
2 answers

Hiera lookup based on pattern

I am trying to wrap my head around how I can transition from something I am doing in my large site.pp file into a structure I can use in hiera. It isn't clear to me from reading the puppet docs, exactly how the hiera data is evaluated and when it…
Zoredache
  • 130,897
  • 41
  • 276
  • 420
7
votes
1 answer

Verifying hiera lookup for puppet

In the course of attempting to debug my puppet manifests numerous times after bundling it with hiera, sometimes I doubt whether the correct hiera lookup is even being performed. I am mostly using CentOS with Puppet 3. Is there any tool I can use to…
xiankai
  • 173
  • 1
  • 4
7
votes
3 answers

How do you automatically install puppet modules on `puppet apply`

Is it possible to automatically install or include puppet modules in your puppet config? I'm having to manually run puppet module install before running puppet apply.
Mike
  • 73
  • 1
  • 4
7
votes
3 answers

Could not call sign: Could not find certificate request for puppet

I'm getting started with puppet on ec2 using the following guide. https://help.ubuntu.com/12.04/serverguide/puppet.html In the very last step when I try to sign the puppet client from the puppet master I get the following…
user784637
  • 1,542
  • 7
  • 35
  • 52
7
votes
2 answers

Force to apply changes through puppet on a puppet agent, through master?

Is it possible to issue a command from master puppet, to a node, to run agent and apply the latest configuration to it? Like, I have lost password for a user and i am not able to login, but puppet agent is installed on the server and I can apply the…
Farhan
  • 4,269
  • 11
  • 49
  • 80
7
votes
3 answers

Vagrant OS X host nfs share permissions error - Failed to set owner to '1000'

I am a Vagrant and Puppet newbie, I have created a Base Box with Debian Squeeze plus standalone Puppet, using the instructions here to install Puppet with the Puppetlabs packages. The box itself seems to import successfully but once I get onto…
rachelandrew
  • 71
  • 1
  • 4
7
votes
3 answers

Redis reload configuration changes without restarting service

When I change redis configuration via puppet, is there a better way to load the configuration other than restarting the redis service?
kalyan
  • 249
  • 1
  • 3
  • 11