diff --git a/manifests/ntp.pp b/manifests/ntp.pp index bbcfffcbf82829e8bd7c0bad0d7ce98dd76e9e92..0b4a6c9553f844bb068a2ebb4be3c24ee566f8d6 100644 --- a/manifests/ntp.pp +++ b/manifests/ntp.pp @@ -38,6 +38,14 @@ class base::ntp { }, notify => Service['ntpd'], } + # On RHEL 8, we expect that systemd-timesync will be present, and not + # masked by NTP's installation. So, disbale the service. + if ( $::lsbmajdistrelease == 8 ) { + service { 'systemd-timesyncd': + ensure => stopped, + enable => false, + } + } } 'Debian': { package { 'ntpdate': ensure => present }