Fixed the ordering holding on hosts and network config.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 10 months ago
parent b8c73fd3f2
commit c31880c2ec
  1. 6
      tools/anvil-join-anvil

@ -55,9 +55,6 @@ if (not $anvil->data->{sys}{database}{connections})
# Get the job details # Get the job details
load_job($anvil); load_job($anvil);
# Make sure the hosts file has entries for all nets for both subnodes
wait_for_etc_hosts($anvil);
# Hold until both subnodes are marked as configured and not in maintenance mode. # Hold until both subnodes are marked as configured and not in maintenance mode.
wait_for_subnodes($anvil); wait_for_subnodes($anvil);
@ -67,6 +64,9 @@ update_passwords($anvil);
# Check if we need to change any IPs or our hostname. # Check if we need to change any IPs or our hostname.
check_local_network($anvil); check_local_network($anvil);
# Make sure the hosts file has entries for all nets for both subnodes
wait_for_etc_hosts($anvil);
# Wait until we can ping our peer on all networks. # Wait until we can ping our peer on all networks.
wait_for_access($anvil); wait_for_access($anvil);

Loading…
Cancel
Save