remove reboot mails, noone does care about these anyway

This commit is contained in:
Franzi 2023-07-26 08:29:37 +02:00
parent 3a8e3ce01b
commit 3826ccf4ec
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 0 additions and 14 deletions

View file

@ -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

View file

@ -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)}"

View file

@ -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"

View file

@ -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',
}, },