diff --git a/salt/pillars/packages.sls b/salt/pillars/packages.sls index 1d86711..557f1f9 100644 --- a/salt/pillars/packages.sls +++ b/salt/pillars/packages.sls @@ -1,3 +1,4 @@ packages: - vim - jq + - htop diff --git a/salt/states/tlu-harvester/files/shutdown_harvester b/salt/states/tlu-harvester/files/shutdown_harvester index 43e14fe..37966d7 100755 --- a/salt/states/tlu-harvester/files/shutdown_harvester +++ b/salt/states/tlu-harvester/files/shutdown_harvester @@ -33,7 +33,7 @@ def stop_vm(name, ns): _exec(cmd) def ping(host): - cmd = f"ping -c 1 {host}".split() + cmd = f"ping -c 1 -W 1 {host}".split() process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = process.communicate() if process.returncode == 0: