This playbook works with (or will aim to work with) the following technologies:
Django
Git
uWsgi
Nginx
PostgreSQL
Celery
Haystack
Elastic Search
Redis
I encourage pull requests towards this regard
Todo
Security
close all ports and open only those required
dbservers:
only allow access into postgres port from appservers ip addresses
Database Node
celery
haystack
elasticsearch
Monitoring
Nagios
Auto Scaling
nagios triggers to automate ansible scaling
Installation
git clone this repo to a sensible location
edit ~/.bash_rc (or other such file) to include an alias to the play script.
alias playbook='~/Dev/ansible/play'
copy the inventory directory to your django project source tree (see below) and put all sensitive information in this folder (assuming your project is private).
copy the Vagrantfile to the same location.
modify line 51 to point at this repo you cloned:
ansible.playbook = "~/Dev/ansible/playbook/site.yml"
Minimum Django Applications
I make some assumptions about the packages that you'll use:
请发表评论