The bastion hosts are the first two machines in the VPC and are used as jumphosts to connect to other instances in your VPN. That is why they are installed first. They will be provided with a squid cache and function as a proxy for the other hosts to install packages and such:
- Script: install.yml
- Jinja template: None
- Run command: ansible-playbook -i /usr/local/bin/terraform.py deploy/install.yml
After installation, you can connect using the following script:
connect_ssh.sh bastion0
Or, if you want to connect to the second bastion host, use the following script:
connect_ssh.sh bastion1
The hosts will be used by the Ansible scripts as jumphosts for deployments.