Deploying to server
All our server infrastructure is handled via Ansible scripts.
The main script is "deploy.yaml" which is used to update the servers with the latest version of the code. Different servers and their configurations are kept in ansible/hosts
In "ansible" folder of the main project, do
ansible-playbook deploy.yaml -i hosts/testing
For setting up a new server, there are two additional scripts:
- "bootstrap.yaml" which takes a standard AWS instance and creates a new user with a set known_hosts file
- "infrastructure.yaml" which takes a hosts file that contains the addresses of bootstrapped server(s) and sets up our system there
infrastructure.yaml requires hosts/ssl folder to be present that is not in the repo since it contains server certificates and their secret keys.