benschw / borg-demo-vagrant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

# grab this repo
git clone https://github.com/benschw/borg-demo-vagrant.git
cd borg-demo.git

# clone the demo application
git clone https://github.com/benschw/borg-demo.git

# clone puppet dependencies and provision the demo cluster
./deps.sh
vagrant up

# configure consul and the mysql master database on "dc0"
vagrant ssh infra00
/vagrant/consul.sh
/vagrant/mysql-master.sh
exit

# configure consul and the mysql slave database on "dc1"
vagrant ssh infra10
/vagrant/consul.sh
/vagrant/mysql-slave.sh
exit

links (once it's up)

  • DC0
    • Dashboard
    • Demo
      • curl -X POST http://172.20.10.11:8080/life-form -d '["Jean-Luc Picard"]'
  • DC1
    • Dashboard
    • Demo
      • curl -X POST http://172.20.20.11:8080/life-form -d '["Jean-Luc Picard"]'

About


Languages

Language:Puppet 57.1%Language:Shell 35.4%Language:Python 7.4%