Skip to content

balanced-ops/ansible-devpi

Repository files navigation

devpi Build Status

The intention of this playbook is to be used behind an Elastic Load Balancer that has SSL termination.

installing ansible

workon ansible-venv
git clone [email protected]:ansible/ansible.git
git submodule update --init --recursive
cd ansible
pip install .
cd ../

installing confu

workon ansible-venv
pip install con-fu

Run w/ Vagrant

workon ansible-venv
vagrant up --provision

Installing roles

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

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

Balanced's devpi Installation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages