Wrap text
|
|
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":
enable => true,
ensure => running,
pattern => "ntpd",
require => [ Package["openntpd"], File["/etc/openntpd/ntpd.conf"] ],
}
}
class openntpd::client inherits openntpd::common {
File["/etc/openntpd/ntpd.conf"] {
content => template("openntpd/ntpd.conf.client.erb"),
}
}
class basic-node {
include openntpd::client
file {
"/etc/default/openntpd":
content => 'DAEMON_OPTS="-s"',
require => Package["openntpd"],
notify => Service["openntpd"];
}
}
|