diff options
Diffstat (limited to 'modules/ntp/manifests/init.pp')
-rw-r--r-- | modules/ntp/manifests/init.pp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/ntp/manifests/init.pp b/modules/ntp/manifests/init.pp index a647925f..9a962211 100644 --- a/modules/ntp/manifests/init.pp +++ b/modules/ntp/manifests/init.pp @@ -1,8 +1,13 @@ 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': |