puppet: Switch from ntp to chrony.

Chrony is the recommended time server for Ubuntu since 18.04[1], and
is the default on Redhat; it is more accurate, and has lower-memory
usage, than ntp, which is only getting best-effort security
maintenance.

See:
- https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Chrony
- https://chrony.tuxfamily.org/comparison.html
- https://engineering.fb.com/2020/03/18/production-engineering/ntp-service/
This commit is contained in:
Alex Vandiver
2022-03-22 12:00:40 -07:00
committed by Tim Abbott
parent b67288db67
commit 4d4c320a07

View File

@@ -29,7 +29,7 @@ class zulip::profile::base {
# Used to read /etc/zulip/zulip.conf for `zulipconf` Puppet function
'crudini',
# Accurate time is essential
'ntp',
'chrony',
# Used for tools like sponge
'moreutils',
# Nagios monitoring plugins
@@ -49,7 +49,7 @@ class zulip::profile::base {
'curl',
'jq',
'crudini',
'ntp',
'chrony',
'moreutils',
'nmap-ncat',
'nagios-plugins', # there is no dummy package on CentOS 7
@@ -60,6 +60,7 @@ class zulip::profile::base {
fail('osfamily not supported')
}
}
package { 'ntp': ensure => 'purged', before => Package['chrony'] }
package { $base_packages: ensure => 'installed' }
group { 'zulip':