Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This folder contains Ansible assets responsible for provisioning hosts and deploying this application.

Setup

  1. Procure access to Ubuntu 16.04 (Xenial) or Ubuntu 18.04 (Bionic) host which will be used to host this application. AWS or Digital Ocean are good options.
  2. Setup DNS records to point to these host(s).
  3. Create config.yml file in this directory, using config.yml.example as a pattern.

Usage

From the root of this respository, run one of the following commands:

  • npm run provision:prod: This will provision all production hosts specified in config.yml file.
  • npm run deploy:prod: This will deploy the app to all production hosts specified in config.yml file.

Notes

  • The deploy.yml and provision.yml playbooks were written against and tested on Ubuntu 16.
  • The Ansible Best Practices document demonstrates using /groups_vars/... for application environment variables (i.e. production / staging) and /group_vars/all for global variables. However, we are using inventory group variables, all contained within the inventory file (config.yml) to define environment and global variables. Because of this, all the variables are in a single location and easily managed.