diff --git a/agents.tf b/agents.tf index 4f6e7e5..3ec345b 100644 --- a/agents.tf +++ b/agents.tf @@ -59,11 +59,11 @@ resource "null_resource" "agents" { # Start the k3s agent and wait for it to have started provisioner "remote-exec" { inline = [ - "systemctl start k3s-agent", + "systemctl start k3s-agent 2> /dev/null", <<-EOT timeout 120 bash < /dev/null; do - systemctl start k3s-agent + systemctl start k3s-agent 2> /dev/null echo "Waiting for the k3s agent to start..." sleep 2 done diff --git a/servers.tf b/servers.tf index 5bc9ba4..ef3856f 100644 --- a/servers.tf +++ b/servers.tf @@ -65,11 +65,11 @@ resource "null_resource" "control_planes" { # Start the k3s server and wait for it to have started correctly provisioner "remote-exec" { inline = [ - "systemctl start k3s", + "systemctl start k3s 2> /dev/null", <<-EOT timeout 120 bash < /dev/null; do - systemctl start k3s + systemctl start k3s 2> /dev/null echo "Waiting for the k3s server to start..." sleep 2 done