Wrap text
|
|
#!/usr/bin/env puppet
class openntpd::common {
package {
"openntpd":
ensure => installed;
}
file {
"/etc/openntpd/ntpd.conf":
owner => root,
group => root,
mode => 644,
require => Package["openntpd"],
notify => Service["openntpd"],
}
service {
"openntpd":
ensure => running,
enable => true,
pattern => "ntpd",
require => [ Package["openntpd"], File["/etc/openntpd/ntpd.conf"] ];
}
}
node junglist {
include openntpd::common
file {
"/etc/default/openntpd":
content => 'DAEMON_OPTS="-s"',
require => Package["openntpd"],
notify => Service["openntpd"];
}
}
|