removing reboot from scripts - reboot will happen after all configuration is done
again - removing master as a separate step in editing hosts file - machines are going to be rebooted either way at the end
rebooting all machines at the end of script
wait for active after reboot