Added cluster reboot function.
This commit is contained in:
parent
968028ae3e
commit
3abe8af874
10
broker.sh
10
broker.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user