fix huge bug in agent definition

This commit is contained in:
Karim Naufal 2022-02-15 21:47:24 +01:00
parent 037f03c50b
commit a27adfc93d

View File

@ -81,7 +81,7 @@ resource "hcloud_server" "agents" {
# first we disable automatic reboot (after transactional updates), and configure the reboot method as kured
"rebootmgrctl set-strategy off && echo 'REBOOT_METHOD=kured' > /etc/transactional-update.conf",
# then we start k3s agent and join the cluster
"systemctl enable k3s-server",
"systemctl enable k3s-agent",
<<-EOT
until systemctl status k3s-agent > /dev/null
do