diff options
author | Dan Fandrich <danf@mageia.org> | 2024-10-04 18:47:00 -0700 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2024-10-04 18:47:00 -0700 |
commit | a69863ece1973cf3eae488f30c657b57dfb89779 (patch) | |
tree | 659f3ee719b437817a02db4a31dbd37a65972412 /modules | |
parent | 3182414eac98cfed3d863decc4fd4d46892dfd52 (diff) | |
download | puppet-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.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': |