uninstall chrony and ntpd everywhere
This commit is contained in:
parent
191b74a6d3
commit
e12b9e6c12
2 changed files with 28 additions and 9 deletions
|
@ -2,7 +2,6 @@ svc_systemd = {}
|
|||
pkg_apt = {}
|
||||
|
||||
for i in {
|
||||
'chrony',
|
||||
'gce-disk-expand',
|
||||
'google-cloud-packages-archive-keyring',
|
||||
'google-cloud-sdk',
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue