Ansible playbook for deploying richard
- Create a server somewhere and be able to connect to it with sudo powers
- Edit inventory/development to point to your server
- Try running ./run.sh
To see a example of this playbook in use, refer to https://github.com/pyvideo/pyvideo-deploy. This is what deploys http://pyvideo.org.
- See issue list for outstanding issues.
- Copy
vars/secret.yml-dist
tovars/secret.yml
and put secret things in there. This file should never be checked in. - Copy
vars/all.yml-dist
tovars/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. - Create a virtual environment:
mkvirtualenv richardansible
- Install requirements:
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