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
1
vote
2 answers

Removing "X Windows System" and Gnome using Puppet

I'm trying to remove unnecessary services like XWindows and Gnome on production RHEL/CentOS machines using Puppet (I don't get to install the OS). From what I can tell, "groupremove" isn't supported/recommended yet, because it's not quite the…
mike
  • 11
  • 1
1
vote
1 answer

Loading dependencies for custom puppet functions

I have written a custom puppet function, which is working fine, that depends on the cloudservers gem (a Rackspace client library). This is fine if I have pre-installed the gem on a server before running puppet but totally breaks if I have not…
Ben Smith
  • 157
  • 5
1
vote
5 answers

Puppet: Could not find init script for 'squid'

I'm using Puppet to install ufdbGuard which requires Squid 2.7 (which is correctly installed and working properly). Here is the relevant class: class pns_client::squid { package { 'squid': ensure => present, before =>…
chris
  • 292
  • 2
  • 7
  • 14
1
vote
3 answers

Puppet print out messages

Is there a way to print out messages to the console before executing a command in puppet. For example, let's say my manifest has: exec { command => 'mycommandhere' } I would like to print a message that says 'Running my command'. Is there an…
Jeff Storey
  • 448
  • 1
  • 7
  • 19
1
vote
1 answer

How to depend on a Puppet class before mounting?

I mount Cloudfuse to access Rackspace's Cloudfiles using Puppet, but on a new host, mount runs too soon, even though I require the whole class. In Pro Puppet, James recommends splitting class definitions like this: class cloudfuse{ include…
1
vote
1 answer

Puppet agent delay when creating new certificate

root@testpgmaster:/# puppetd --test info: Creating a new SSL key for testpgmaster warning: peer certificate won't be verified in this SSL session info: Caching certificate for ca warning: peer certificate won't be verified in this SSL…
Antonis Christofides
  • 2,598
  • 2
  • 23
  • 35
1
vote
1 answer

Do I need to remove the 'include module' that already installed by Puppet?

I am very new to Puppet. I just write a code to install software via puppet node 'myweb.com' { include ntp include apache apache::vhost { 'myweb.com': port =>8080, docroot => '/var/www/myweb.com', ssl => false, …
bayou
  • 33
  • 3
1
vote
1 answer

How to set the string "value;othervalue" in php.ini with augeas?

i want to change the session.save_path in the php.ini with augeas default: session.save_path="/var/lib/php5" target value session.save_path="3;/var/lib/php5sessions" augeas returns quite interesting results not working command (save is…
c33s
  • 1,515
  • 3
  • 21
  • 39
1
vote
1 answer

Unable to start puppetmaster on CentOS 6

I installed puppet 2.6.12 on CentOS 6. When I try to start the puppetmaster service using the command service puppetmaster start I get the error: Starting puppetmaster: /usr/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:142:in open:…
jimcgh
  • 123
  • 1
  • 4
1
vote
2 answers

MCollective daemon not binding a network socket

I’ve just installed PE using on Ubuntu 10.04 LTS using puppet-enterprise-2.0-ubuntu-10.04-amd64.tar.gz (downloaded from http://puppetlabs.com/misc/pe-files/) and right now the same machine is running the master, the console, and the agent roles. I…
Max
  • 3,523
  • 16
  • 53
  • 71
1
vote
2 answers

Puppet: Unable to start squid service

In init.pp the squid service is defined like this: service { 'squid': ensure => running, enable => true, hasrestart => true, hasstatus => true, subscribe => File['/etc/squid/squid.conf'], } The result is this: err:…
chris
  • 292
  • 2
  • 7
  • 14
1
vote
2 answers

Puppet; pushing manifests to nodes without restarting puppetmasterd?

After I update a manifest for a node; does puppetmaster automatically send the configuration to the node? If it does what is the interval and how do I change it? Where can I find more information about this? I assume it's the runinterval for…
user101130
1
vote
1 answer

Including a defined resource in a class

I've read the documentation over but I cannot figure out how to include a defined resource. I've tired: include User::Admin['beamin'] I get: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `downcase' for…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
1
vote
1 answer

How do I require a resource in a Puppet definition based on an array parameter?

I have a define that looks like this: define user::sys_user($fullname, $uid, $groups, $shell='/bin/bash', $authkey, $authkey_type=rsa) { $username = "sys_${name}" group { $username: gid => $uid, } …
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
1
vote
2 answers

Use Puppet to deploy files to all user's home directory

I want to deploy a simple text file (a git commit message template) to each user's home directory using Puppet. I came across this post which seems very close, but the part I'm not clear on is how do I generate a list of users for each node? In the…
Millhouse
  • 113
  • 5