Skip to content

balanced-ops/ansible-balanced

Repository files navigation

Balanced Build Status

How to install

  • If you don't have a virtualenv with ansible 1.8 installed, you should create one. Let's call this ansible-venv

  • This takes on my machine:

    vagrant up --provision 16.84s user 8.35s system 2% cpu 14:56.98 total

So, about 15minutes.

installing ansible

workon ansible-venv
pip install ansible==1.8.2

installing confu

workon ansible-venv
pip install con-fu

installing roles

ansible-galaxy install -r requirements.yml -p `pwd`/roles

Run w/ Vagrant

workon ansible-venv
vagrant up --provision

Re-installing roles

ansible-galaxy install -r requirements.yml -p `pwd`/roles --ignore-errors

Debugging while running vagrant

Collect facts

ansible -i ./vagrant_ansible_inventory_default all -m ec2_facts -u vagrant -vvv -c ssh --private-key ~/.vagrant.d/insecure_private_key

Execute a playbook

ansible-playbook -i ./vagrant_ansible_inventory_default -u vagrant -vvv -c ssh --private-key ~/.vagrant.d/insecure_private_key site.yml

Gotachas

  • setup ansbile inside virtualenv and run it from there
  • make sure you synced over your folders (TODO: make this part of the play)
  • if you use vagrant, destroy the VM, and re-provision it, you have to delete the host file key otherwise ansible can't start

About

The ansible role installs the Balanced API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published