diff options
author | Scott Moser <smoser@brickies.net> | 2020-10-01 12:34:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 12:34:50 -0400 |
commit | 33c6d5cda8773b383bdec881c4e67f0d6c12ebd6 (patch) | |
tree | 32806f022f3a1dbc8006cc99fce9d6e63c52a680 /cloudinit | |
parent | 25eeaac03f1f0e0e1c460e1d0d88b23f76c17044 (diff) | |
download | vyos-cloud-init-33c6d5cda8773b383bdec881c4e67f0d6c12ebd6.tar.gz vyos-cloud-init-33c6d5cda8773b383bdec881c4e67f0d6c12ebd6.zip |
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
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/config/cc_ntp.py | 8 |
1 files changed, 8 insertions, 0 deletions
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', |