From 11dc61a39e1bde5497f67ecf5b931157b80f48b5 Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Sun, 20 Feb 2022 13:36:41 +0100 Subject: [PATCH] tweaked k3s start --- agents.tf | 4 ++-- servers.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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