Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
/ govwifi-ansible Public archive

Ansible Provisioning For GovWifi Infrastructure

License

Notifications You must be signed in to change notification settings

GovWifi/govwifi-ansible

Repository files navigation

GovWifi Ansible

Ansible playbooks to provision GovWifi infrastructure on AWS. This will ensure that the servers are correctly configured to run GovWifi.

Setup

  • Ensure you have ansible installed locally with pip3 install ansible
  • Ensure that your AWS credentials are set up in ~/.aws/credentials
[govwifi]
aws_access_key_id = XXXYYY
aws_secret_access_key = super-secret-key
  • Populate the inventory file with IP addresses for the servers that you are provisioning under the relevant categories.
[frontend_staging_dublin]
xx.xx.xx.xx
xx.xx.xx.xx
  • Your ssh configuration will need to be set up to allow Ansible to ssh into your targets through the bastion server. It will look something like this:
Host stagingbastion
  HostName xxx.xxx.xxx.xxx
  IdentityFile ~/.ssh/your-staging-bastion-key
  User ubuntu

Host xxx.xxx.xxx.xxx
  IdentityFile ~/.ssh/your-ec2-key
  User ec2-user
  ProxyCommand ssh stagingbastion -W %h:%p

Run

London

make staging-london-frontend provision or make production-london-frontend provision

Dublin

make staging-dublin-frontend provision or make production-dublin-frontend provision

About

Ansible Provisioning For GovWifi Infrastructure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published