From ArchWiki
Revision as of 05:01, 8 May 2013 by Aboe (talk | contribs) (Puppet 3.2.0rc1)
Jump to: navigation, search

From Puppet web site:

Puppet is IT automation software that helps system administrators manage infrastructure throughout its lifecycle, from provisioning and configuration to patch management and compliance. Using Puppet, you can easily automate repetitive tasks, quickly deploy critical applications, and proactively manage change, scaling from 10s of servers to 1000s, on-premise or in the cloud.


Puppet packages are available in AUR. Install either puppet or puppet-git. The maintainer of the puppet AUR packages is not interested in shipping patches to minimize work as well as avoid confusion as to where bugs should go. So I will collect my patches here.


Puppet's main configuration file is puppet.conf which is located at /etc/puppet/puppet.conf. You have 3 options to place settings depending if it is a master/agent

Bare minimum of settings are:

  • server: The hostname of the puppet server. Default = puppet
  • report: Most users should set this to true.
  • pluginsync: Most users should set this to true.
  • certname: The certified name of the machine (unique identifier) default = fqdn

Puppet will look for node configuration in /etc/puppet/manifests/site.pp.

After starting puppet by daemon/cron/standalone, it will generate certificates in /etc/puppet/ssl/ directory.

On the puppet master you need to accept this certificate: sudo puppet cert sign <name>.


Facter is a package that gathers facts about the system it runs on. Use with puppet facts find facter.

Facter requires both ifconfig as well as ip to gather network related facts.

Ruby-Facter 1.7.0

With facter 1.7.0 the new ifconfig in arch will give proper output to IP adresses,
but netmask/mtu are still a problem.

Netmask has been adressed on github version of facter.


"Pacman" is supported by puppet. Installing packages works out of the box with puppet 3.1.0 and the git packages.


Puppet 3.2.0rc2

If you want to enable the "storeconfig" option in /etc/puppet/puppet.conf you will also need this patch:

diff -urN puppet-3.1.1-orig/lib/puppet/rails/resource.rb puppet-3.1.1/lib/puppet/rails/resource.rb
--- puppet-3.1.1-orig/lib/puppet/rails/resource.rb      2013-03-13 20:53:21.766846140 +0100
+++ puppet-3.1.1/lib/puppet/rails/resource.rb   2013-03-13 21:01:07.337490296 +0100
@@ -84,7 +86,11 @@
   def [](param)
-    super || parameter(param)
+    if param == 'id'
+      super
+    else
+      super || parameter(param)
+    end
   # Make sure this resource is equivalent to the provided Parser resource.

Apply in the same place.

Before you apply above patch read this:using_stored_configuration

See also