From 0b7aa965cf90d3fc843613438d6face882d884ce Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Tue, 28 Apr 2015 12:25:33 +0300 Subject: [PATCH] ntpd: Use chrony instead of isc-ntpd on CentOS 7. --- ntpd/manifests/init.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ntpd/manifests/init.pp b/ntpd/manifests/init.pp index a3a89d6..cad9dba 100644 --- a/ntpd/manifests/init.pp +++ b/ntpd/manifests/init.pp @@ -40,6 +40,13 @@ class ntpd { "openbsd": { include ntpd::openntpd } + "centos","redhat": { + if versioncmp($::operatingsystemrelease, "7") < 0 { + include ntpd::isc-ntpd + } else { + include ntpd::chrony + } + } default: { include ntpd::isc-ntpd }