This ansible repository configures the supergravity infrastructure.
This setup is only tested on linux (feedback about other systems welcome)
install chefdk (required for testkitchen). install vagrant install python with virtualenv. Debian/Ubuntu:
apt-get install python-virtualenv git
Enter test environment:
git clone https://github.com/supergravity-org/infra-ansible.git
cd infra-ansible
. ./enter.sh
To run your configuration simply run:
kitchen converge web
To see a list of targets:
kitchen list
It will start a virtual machine and configures it for the webservices used.
Change your '''/etc/hosts''' file:
127.0.0.1 localhost [...] ask.supergravity.local supergravity.local wiki.supergravity.local www.supergravity.local
Now you can visit http://supergravity.local:8080 for your changes.
Directory/File | Content |
---|---|
etc/ | host files |
roles | ansible roles for configuration of services |
keystore | encrypted passwords for services |
supergravity_main | wagtail root of cms |
tasks/ | ansible tasks for rolling out |
.kitchen.yml | kitchen configuration for testing |
- wagtail cms
- askbot question/answer site
- discourse discussion platform (IN PROGRESS)
- docuwiki wiki (TODO) (in docker, no php on the host)
Because ansible would configure everything from start to bottom which is not necessary most of the time, you can jump to the last place that worked well by setting a environment variable:
ANSIBLE_EXTRA_FLAGS='--start-at-task="discourse | Clone discourse_docker repo"' kitchen converge web
Will save you a lot of time :)