Name: tune-infrastructure
Owner: TABLEFLIP
Description: :trumpet: :floppy_disk: Infrastructure project for Tune
Created: 2016-03-30 15:15:52.0
Updated: 2016-11-28 12:14:52.0
Pushed: 2016-11-22 16:43:54.0
Size: 45
Language: Nginx
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Ansible scripts for deploying and maintaining tune.tableflip.io
group_vars # Config options
dev # Inventory for local vm
next # Inventory for staging vm
production # Inventory for LIVE vm
roles # Tasks, grouped by purpose
bootstrap.yml # Playbook to get a fresh vm ready for Ansible
deploy-app.yml # Playbook to deploy & update the app
Vagrantfile # Test the scripts locally with `vagrant up`
You need to add a secrets.yml
file into group_vars/all
.
This file contains all of the secrets for the deployments that we'd prefer not to keep in the repo.
To bootstrap a local test server with vagrant
brew install vagrant
)10.100.112.100 dev.tune.tableflip.io
to your local /etc/hosts
wnload and provision a vm
ant up
date vm with our roles
ble-playbook -i dev deploy-app.yml
You now have a test vm, running locally
To bootstrap a new production vm
/root/.ssh/authorized_keys
on the remoteotstrap ansible user
ble-playbook -i production bootstrap.yml --extra-vars "ansible_user=root"
tall app and dependencies
ble-playbook -i production deploy-app.yml