For deployment of fresh cluster
- Modify env=vagrant-vbox or staging or dev-test accordinly in make_userdata.txt
- For the first time, run first_time.sh. It will generate consul token and userdata.txt.
- Customize the userdata.txt according to the machine need. Like if http_proxy is already there in /etc/environment, remove that part
- Add the machine ips in machines.txt. All the machines should be ssh enabled.
- Run transfer_run_background_script.sh userdata.txt machines.txt
To clean old cluster
- Run list_machines.sh , list_mon.sh, list_st.sh.
- Run remove_puppet.sh using transfer_run_background_script.sh on all the machines listed in : transfer_run_background_script.sh remove_puppet.sh all_machines.txt
- Clean mons: transfer_run_background_script.sh clean_mon.sh all_mon.txt
- Clean st: transfer_run_background_script.sh clean_st.sh all_st.txt
You should have ssh pwdless access to all the machines for the above to work.