Ansible playbook for deploying richard
To see a example of this playbook in use, refer to https://github.com/pyvideo/pyvideo-deploy. This is what deploys http://pyvideo.org.
vars/secret.yml-dist
to vars/secret.yml
and put secret things
in there. This file should never be checked in.vars/all.yml-dist
to vars/all.yml
and put site-specific
configuration in there as well as override any variables you need
to override. If you have no site-specific things, you can just
leave it as is.mkvirtualenv richardansible
pip install -r requirements.txt
To use the Vagrant environment, do the above and then do:
vagrant up
This uses Vagrant to create a vm with richard and its requirements set up.
You can connect to richard in the vagrant environment by pointing your
browser to http://localhost:8000
.
Helpful commands:
vagrant up
: starts the environmentvagrant ssh
: sshs into the environment as the vagrant uservagrant provision
: run ansible on the environment to pick up any
configuration management changesvagrant halt
: halts the environmentvagrant destroy
: destroys the vm