bundles/c3voc-addons: use new way of doing updates, too
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-05-11 06:21:42 +02:00
parent c41c43cd5c
commit fab9a41024
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1 @@
../../apt/files/do-unattended-upgrades

View file

@ -0,0 +1 @@
../../apt/files/upgrade-and-reboot.conf

View file

@ -63,14 +63,21 @@ files = {
'/etc/kernel/postinst.d/unattended-upgrades': {
'source': 'kernel-postinst.d',
},
'/etc/upgrade-and-reboot.conf': {
'content_type': 'mako',
},
'/usr/local/share/icinga/plugins/check_unattended_upgrades': {
'mode': '0755',
},
'/usr/local/sbin/upgrade-and-reboot': {
'mode': '0700',
},
'/usr/local/sbin/do-unattended-upgrades': {
'content_type': 'mako',
'mode': '0700',
'context': {
'data': node.metadata.get('apt/unattended-upgrades', {}),
'clean_old_kernels': node.metadata.get('apt/clean_old_kernels', True),
'restart_triggers': node.metadata.get('apt/restart_triggers', {}),
}
},
}