remove reboot mails, noone does care about these anyway
This commit is contained in:
parent
3a8e3ce01b
commit
3826ccf4ec
4 changed files with 0 additions and 14 deletions
|
@ -46,10 +46,6 @@ fi
|
||||||
|
|
||||||
if [[ -f /var/run/reboot-required ]] && [[ "$auto_reboot_enabled" == "True" ]]
|
if [[ -f /var/run/reboot-required ]] && [[ "$auto_reboot_enabled" == "True" ]]
|
||||||
then
|
then
|
||||||
if [[ -n "$reboot_mail_to" ]]
|
|
||||||
then
|
|
||||||
date | mail -s "SYSREBOOTNOW $nodename" "$reboot_mail_to"
|
|
||||||
fi
|
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
nodename="${node.name}"
|
nodename="${node.name}"
|
||||||
reboot_mail_to="${node.metadata.get('apt/unattended-upgrades/reboot_mail_to', '')}"
|
|
||||||
auto_reboot_enabled="${node.metadata.get('apt/unattended-upgrades/reboot_enabled', True)}"
|
auto_reboot_enabled="${node.metadata.get('apt/unattended-upgrades/reboot_enabled', True)}"
|
||||||
|
|
|
@ -44,10 +44,6 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$reboot_mail_to" ]]
|
|
||||||
then
|
|
||||||
date | mail -s "SYSREBOOTNOW $nodename" "$reboot_mail_to"
|
|
||||||
fi
|
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
|
|
||||||
echo "upgrade-and-reboot for node $nodename is DONE"
|
echo "upgrade-and-reboot for node $nodename is DONE"
|
||||||
|
|
|
@ -33,11 +33,6 @@ groups['linux'] = {
|
||||||
'users',
|
'users',
|
||||||
},
|
},
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'apt': {
|
|
||||||
'unattended-upgrades': {
|
|
||||||
'reboot_mail_to': libs.defaults.hostmaster_email,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'backup-client': {
|
'backup-client': {
|
||||||
'target': 'htz-hel.backup-kunsi',
|
'target': 'htz-hel.backup-kunsi',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue