Skip to content

Instantly share code, notes, and snippets.

@zipkid
Created September 17, 2012 11:44
Show Gist options
  • Save zipkid/3736859 to your computer and use it in GitHub Desktop.
Save zipkid/3736859 to your computer and use it in GitHub Desktop.
manifests/site.pp
# global defaults
# backup file changes to the puppet server
# Only for complete files managed by puppet!
filebucket { 'puppet':
server => puppet
}
File {
backup => 'puppet',
}
# PATH setting
Exec {
path => '/usr/bin:/usr/sbin/:/bin:/sbin'
}
# Stages
stage { 'repo': before => Stage[package] }
stage { 'package': before => Stage[main] }
stage { 'post': require => Stage[main] }
class {
"pkgutil": stage => repo
}
class {
"download_files": stage => repo
}
class {
"package": stage => package
}
# Default stuff for ALL nodes
node default
{
}
hiera_include("classes")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment