Skip to content

Instantly share code, notes, and snippets.

@strangeman
Created October 22, 2012 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strangeman/3929725 to your computer and use it in GitHub Desktop.
Save strangeman/3929725 to your computer and use it in GitHub Desktop.
Skeleton of Puppet manifest, which install, configure and run daemon
# == Class: blah
#
# blahblahblah
#
# === Actions
# - blah
# - blah
# - blah
#
# === Examples
# include blah
#
# === Authors
# blah <blah@blah>
#
class blah {
case $::osfamily {
'debian': { }
default: {
fail("Module blah is not supported on ${operatingsystem}")
}
}
package {'blah':
ensure => installed
}
file {'/etc/blah.conf':
content => template("blah/blah.erb"),
owner => 'root',
group => 'root',
mode => '0644',
}
service {'blah':
ensure => running,
enable => true,
hasrestart => true,
hasstatus => true,
}
Package['blah']->File['/etc/blah.conf']~>Service['blah']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment