Arif Ali
4ee03a9887
* Combine bionic and focal fix_cloud script * Add latest vault keys for my lab * Add new shudown script for my lab envs
13 lines
213 B
Bash
Executable File
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
|