From 33c6d5cda8773b383bdec881c4e67f0d6c12ebd6 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 1 Oct 2020 12:34:50 -0400 Subject: Fix name of ntp and chrony service on CentOS and RHEL. (#589) The service installed by the CentOS and RHEL 'ntp' package is ntpd.service not ntp.service Fix that for those two distros. Also fix chrony service from 'chrony' to 'chronyd'. LP: #1897915 --- cloudinit/config/cc_ntp.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cloudinit/config') diff --git a/cloudinit/config/cc_ntp.py b/cloudinit/config/cc_ntp.py index 3d7279d6..e183993f 100644 --- a/cloudinit/config/cc_ntp.py +++ b/cloudinit/config/cc_ntp.py @@ -80,6 +80,14 @@ DISTRO_CLIENT_CONFIG = { 'confpath': '/etc/chrony/chrony.conf', }, }, + 'rhel': { + 'ntp': { + 'service_name': 'ntpd', + }, + 'chrony': { + 'service_name': 'chronyd', + }, + }, 'opensuse': { 'chrony': { 'service_name': 'chronyd', -- cgit v1.2.3