aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ntp/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ntp/manifests/init.pp')
-rw-r--r--modules/ntp/manifests/init.pp11
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/ntp/manifests/init.pp b/modules/ntp/manifests/init.pp
index a647925f..f75310e7 100644
--- a/modules/ntp/manifests/init.pp
+++ b/modules/ntp/manifests/init.pp
@@ -1,12 +1,17 @@
class ntp {
- package { 'ntp': }
+if versioncmp($::lsbdistrelease, '9') < 0 {
+ $ntppkg = 'ntp'
+} else {
+ $ntppkg = 'ntpsec'
+}
+ package { $ntppkg: }
service { 'ntpd':
- subscribe => [Package['ntp'], File['/etc/ntp.conf']],
+ subscribe => [Package[$ntppkg], File['/etc/ntp.conf']],
}
file { '/etc/ntp.conf':
- require => Package['ntp'],
+ require => Package[$ntppkg],
content => template('ntp/ntp.conf'),
}
}