Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
puppet-conf-apply
puppet-conf-extnodes
puppet-conf-update
puppet-conf-version

README.md

puppet-conf

Puppet-conf is a puppet configuration for masterless operation.

Directory layout

  • /var/lib/puppet-conf: Base directory
    • extdata: external node data
    • manifests: Puppet manifests
    • modules: Puppet modules
    • tools: helper scripts

Setup

Install required packages

# apt-get install puppet git

Check out puppet-conf repo

# git clone --recursive https://git.ciffer.net/svend/puppet-modules.git /etc/puppet/modules

Running Puppet

Run puppet

# puppet apply /etc/puppet/manifests/site.pp

Updating the configuration

To update the configuration, run

# cd /etc/puppet/modules &&
  git pull &&
  git submodule update --init --recursive

Automating

To automatically update the configuration, create the file /etc/cron.d/puppet-conf-update:

# Update puppet configuration
*/10 * * * * root cd /var/lib/puppet-conf && tools/puppet-conf-update >/dev/null 2>&1

To automatically apply the configuration, create the file /etc/cron.d/puppet-conf-apply:

# Apply puppet configuration
*/10 * * * * root cd /var/lib/puppet-conf && tools/puppet-conf-apply --logdest=syslog --verbose >/dev/null
Something went wrong with that request. Please try again.