From 3abe8af87416b92cbd910191f23a3afc9c3447d2 Mon Sep 17 00:00:00 2001 From: caes Date: Tue, 26 May 2020 19:31:09 -0400 Subject: [PATCH] Added cluster reboot function. --- broker.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/broker.sh b/broker.sh index 77fb269..df4f111 100755 --- a/broker.sh +++ b/broker.sh @@ -1008,6 +1008,16 @@ stage_scripts () { ###################################################################### # 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 () { local host=$1 shift