Added cluster reboot function.

This commit is contained in:
caes 2020-05-26 19:31:09 -04:00
parent 968028ae3e
commit 3abe8af874

View File

@ -1008,6 +1008,16 @@ stage_scripts () {
###################################################################### ######################################################################
# Remote dealing # Remote dealing
reboot_hosts () {
local clstr_name=$*
if construst_cluster_info $clstr_name; then
pr_host_list
if [[ -z $TESTING_MODE ]]; then
execute_on_nodes "sudo reboot"
fi
fi
}
ssh_tty_to_host () { ssh_tty_to_host () {
local host=$1 local host=$1
shift shift