tableflip/tune-infrastructure

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

Homepage:

Size: 45

Language: Nginx

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

TUNE Infrastructure

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`
Prerequisites

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.

Usage

To bootstrap a local test server with vagrant

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

otstrap ansible user
ble-playbook -i production bootstrap.yml --extra-vars "ansible_user=root"

tall app and dependencies
ble-playbook -i production deploy-app.yml

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.