Git Product home page Git Product logo

tune-infrastructure's Introduction

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

  • Install Ansible
  • Install Vagrant (brew install vagrant)
  • Add 10.100.112.100 dev.tune.tableflip.io to your local /etc/hosts
# Download and provision a vm
vagrant up

# Update vm with our roles
ansible-playbook -i dev deploy-app.yml

You now have a test vm, running locally

To bootstrap a new production vm

  • Add the new remote to the relevant inventory
  • Add your public ssh key in /root/.ssh/authorized_keys on the remote
# bootstrap ansible user
ansible-playbook -i production bootstrap.yml --extra-vars "ansible_user=root"

# Intall app and dependencies
ansible-playbook -i production deploy-app.yml

tune-infrastructure's People

Contributors

olizilla avatar richsilv avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.