aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-10-04 18:47:00 -0700
committerDan Fandrich <danf@mageia.org>2024-10-04 18:47:00 -0700
commita69863ece1973cf3eae488f30c657b57dfb89779 (patch)
tree659f3ee719b437817a02db4a31dbd37a65972412 /modules
parent3182414eac98cfed3d863decc4fd4d46892dfd52 (diff)
downloadpuppet-a69863ece1973cf3eae488f30c657b57dfb89779.tar
puppet-a69863ece1973cf3eae488f30c657b57dfb89779.tar.gz
puppet-a69863ece1973cf3eae488f30c657b57dfb89779.tar.bz2
puppet-a69863ece1973cf3eae488f30c657b57dfb89779.tar.xz
puppet-a69863ece1973cf3eae488f30c657b57dfb89779.zip
Use the right ntp package name on mga9
Diffstat (limited to 'modules')
-rw-r--r--modules/ntp/manifests/init.pp9
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':