uninstall chrony and ntpd everywhere

This commit is contained in:
Franzi 2022-12-16 15:32:09 +01:00
parent 191b74a6d3
commit e12b9e6c12
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 28 additions and 9 deletions

View file

@ -2,7 +2,6 @@ svc_systemd = {}
pkg_apt = {}
for i in {
'chrony',
'gce-disk-expand',
'google-cloud-packages-archive-keyring',
'google-cloud-sdk',

View file

@ -1,12 +1,32 @@
if node.has_bundle('apt') and node.os_version[0] > 10:
defaults = {
'apt': {
'packages': {
'systemd-timesyncd': {
'needed_by': {
'action:systemd-enable-ntp',
},
defaults = {
'apt': {
'packages': {
'chrony': {
'installed': False,
},
'ntp': {
'installed': False,
},
},
},
'icinga2_api': {
'systemd': {
'services': {
'SYSTEMD-TIMESYNCD STATUS': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit systemd-timesyncd',
},
},
},
},
}
if node.has_bundle('apt') and node.os_version[0] > 10:
defaults['apt']['packages']['systemd-timesyncd'] = {
'after': {
'pkg_apt:chrony',
'pkg_apt:ntp',
},
'needed_by': {
'action:systemd-enable-ntp',
},
}