useful_scripts/shutdown_nodes.sh
Arif Ali 4ee03a9887
Many Updates
* Combine bionic and focal fix_cloud script
* Add latest vault keys for my lab
* Add new shudown script for my lab envs
2022-07-01 20:28:45 +01:00

13 lines
213 B
Bash
Executable File

#!/bin/bash
rcmd="ssh"
cmd="sudo halt -p"
if [[ "$1" == "asrock" ]] ; then
hosts="192.168.1.21[1-3]"
elif [[ "$1" == "pi-k8s" ]] ; then
hosts="192.168.1.8[1-6]"
fi
pdsh -R $rcmd -l ubuntu -w $hosts -- $cmd