summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2020-10-01 12:34:50 -0400
committerGitHub <noreply@github.com>2020-10-01 12:34:50 -0400
commit33c6d5cda8773b383bdec881c4e67f0d6c12ebd6 (patch)
tree32806f022f3a1dbc8006cc99fce9d6e63c52a680 /cloudinit/config
parent25eeaac03f1f0e0e1c460e1d0d88b23f76c17044 (diff)
downloadvyos-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/config')
-rw-r--r--cloudinit/config/cc_ntp.py8
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',