Last active
January 3, 2016 20:59
-
-
Save EmmanuelKasper/8518848 to your computer and use it in GitHub Desktop.
A canonical puppet deployment file, based on the package / file /service hierarchy
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 amanda { | |
package { "amanda-client": | |
ensure => installed, | |
before => File['/etc/amandahosts'], | |
} | |
file { "/etc/amandahosts": | |
ensure => file, | |
owner => "backup", | |
group => "backup", | |
mode => 0600, | |
source => "puppet:///files/amandahosts", | |
} | |
file { "/etc/amanda.exclude-list": | |
ensure => file, | |
owner => "root", | |
group => "root", | |
mode => 0644, | |
replace => false, | |
source => "puppet:///files/amanda.exclude-list", | |
} | |
package { "openbsd-inetd": | |
ensure => installed, | |
before => File['/etc/inetd.conf'], | |
} | |
file { "/etc/inetd.conf": | |
ensure => file, | |
owner => "root", | |
group => "root", | |
mode => 0644, | |
source => "puppet:///files/inetd.conf", | |
} | |
service { "openbsd-inetd": | |
ensure => running, | |
enable => true, | |
pattern => "/usr/sbin/inetd", | |
subscribe => File['/etc/inetd.conf'], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment