1 2 3 4 5 6 7 8 9 10 11 12 13 14
class ntp { package { ntp: } service { ntpd: ensure => running, path => "/etc/init.d/ntpd", subscribe => [Package["ntp"], File["ntp.conf"]], } file { "/etc/ntp.conf": require => Package["ntp"], content => template("ntp/ntp.conf"), } }