blob: f75310e7db6c043e8984c02eb70f4f370fa71871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class ntp {
if versioncmp($::lsbdistrelease, '9') < 0 {
$ntppkg = 'ntp'
} else {
$ntppkg = 'ntpsec'
}
package { $ntppkg: }
service { 'ntpd':
subscribe => [Package[$ntppkg], File['/etc/ntp.conf']],
}
file { '/etc/ntp.conf':
require => Package[$ntppkg],
content => template('ntp/ntp.conf'),
}
}
|