blob: 3f9ecc14e055bae32bce1dd0791343c5233907c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
class ntp {
package { ntp:
ensure => installed
}
service { ntpd:
ensure => running,
path => "/etc/init.d/ntpd",
subscribe => [ Package["ntp"], File["ntp.conf"] ]
}
file { "ntp.conf":
path => "/etc/ntp.conf",
ensure => present,
owner => root,
group => root,
mode => 644,
require => Package["ntp"],
content => template("ntp/ntp.conf")
}
}
|