From ecbd79743e754ac5301c3e37bccb10532fd49f1c Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Mon, 28 Feb 2022 18:45:27 +0100 Subject: [PATCH] trying the reboot-sentinel route --- modules/host/templates/userdata.yaml.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/host/templates/userdata.yaml.tpl b/modules/host/templates/userdata.yaml.tpl index ad7587e..37b80ee 100644 --- a/modules/host/templates/userdata.yaml.tpl +++ b/modules/host/templates/userdata.yaml.tpl @@ -17,6 +17,11 @@ write_files: AuthorizedKeysFile .ssh/authorized_keys path: /etc/ssh/sshd_config.d/kube-hetzner.conf +# Setting the right reboot mode +- content: | + REBOOT_METHOD=rebootmgr + path: /etc/transactional-update.conf + # Add ssh authorized keys ssh_authorized_keys: %{ for key in sshAuthorizedKeys ~} @@ -34,5 +39,5 @@ runcmd: # Fix hostname (during first boot) - hostnamectl hostname ${hostname} -# We are going to let kured do the reboot +# Finishing automatic reboot via Kured setup - rebootmgrctl set-strategy off \ No newline at end of file