diff options
author | Aleksander Baranowski <aleksander.baranowski@yahoo.pl> | 2021-08-05 18:32:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 11:32:36 -0500 |
commit | 3d9c862b6ded798031fad827328fa437bc14ac97 (patch) | |
tree | 8de4fae6a64e05f95329baaf51dd384a6baf59d3 /cloudinit/config/cc_ntp.py | |
parent | 758acf976f2cb67a85411467fa5fca2ea17a2283 (diff) | |
download | vyos-cloud-init-3d9c862b6ded798031fad827328fa437bc14ac97.tar.gz vyos-cloud-init-3d9c862b6ded798031fad827328fa437bc14ac97.zip |
Add support for EuroLinux 7 && EuroLinux 8 (#957)
Diffstat (limited to 'cloudinit/config/cc_ntp.py')
-rw-r--r-- | cloudinit/config/cc_ntp.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cloudinit/config/cc_ntp.py b/cloudinit/config/cc_ntp.py index d227efb9..7c371a49 100644 --- a/cloudinit/config/cc_ntp.py +++ b/cloudinit/config/cc_ntp.py @@ -24,8 +24,9 @@ LOG = logging.getLogger(__name__) frequency = PER_INSTANCE NTP_CONF = '/etc/ntp.conf' NR_POOL_SERVERS = 4 -distros = ['almalinux', 'alpine', 'centos', 'debian', 'fedora', 'opensuse', - 'photon', 'rhel', 'rocky', 'sles', 'ubuntu', 'virtuozzo'] +distros = ['almalinux', 'alpine', 'centos', 'debian', 'eurolinux', 'fedora', + 'opensuse', 'photon', 'rhel', 'rocky', 'sles', 'ubuntu', + 'virtuozzo'] NTP_CLIENT_CONFIG = { 'chrony': { @@ -405,9 +406,9 @@ def generate_server_names(distro): # For legal reasons x.pool.sles.ntp.org does not exist, # use the opensuse pool pool_distro = 'opensuse' - elif distro == 'alpine': + elif distro == 'alpine' or distro == 'eurolinux': # Alpine-specific pool (i.e. x.alpine.pool.ntp.org) does not exist - # so use general x.pool.ntp.org instead. + # so use general x.pool.ntp.org instead. The same applies to EuroLinux pool_distro = '' for x in range(0, NR_POOL_SERVERS): |