Moved the wait_on_subnodes function call to earlier in the script.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent 77bae80534
commit 30248760b5
  1. 6
      tools/anvil-join-anvil

@ -54,6 +54,9 @@ if (not $anvil->data->{sys}{database}{connections})
# Get the job details
load_job($anvil);
# Hold until both subnodes are marked as configured and not in maintenance mode.
wait_for_subnodes($anvil);
# Update the user passwords
update_passwords($anvil);
@ -215,9 +218,6 @@ sub configure_pacemaker
return(0);
}
# Hold until both subnodes are marked as configured and not in maintenance mode.
wait_for_subnodes($anvil);
### Run on both nodes.
# Enable pcsd and start the pcsd daemon.
my ($return_code) = $anvil->System->enable_daemon({daemon => "pcsd.service"});

Loading…
Cancel
Save