Created
October 22, 2012 05:01
-
-
Save strangeman/3929725 to your computer and use it in GitHub Desktop.
Skeleton of Puppet manifest, which install, configure and run daemon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == 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