2015-03-26 13:41:03 -04:00
|
|
|
Ansible Rookeries
|
|
|
|
=================
|
2015-02-27 08:56:41 -05:00
|
|
|
|
2015-03-26 13:41:03 -04:00
|
|
|
An Ansible role that acts as a companion to the Rookeries project. The goal of this role is to make deployment of
|
|
|
|
Rookeries simple. Ideally Rookeries even as a Python WSGI app with this role, should be easier to setup than Wordpress.
|
2015-02-27 08:56:41 -05:00
|
|
|
|
2015-03-26 19:31:36 -04:00
|
|
|
This role is a work-in-progress as Rookeries itself is heavily under development.
|
|
|
|
|
2015-02-27 08:56:41 -05:00
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
2015-03-26 13:41:03 -04:00
|
|
|
- aptitude or python-apt (required by apt tasks)
|
|
|
|
- python > 2.5 (required by ini_file tasks)
|
2016-05-16 18:15:30 -04:00
|
|
|
- Ansible >= 2.0
|
2015-02-27 08:56:41 -05:00
|
|
|
|
2015-03-26 13:41:03 -04:00
|
|
|
This role is designed to work against a modern Ubuntu system. (Tested on Ubuntu 13.10 and 14.04) It should
|
|
|
|
theoretically work on older versions of Ubuntu or Debian based systems.
|
2015-02-27 08:56:41 -05:00
|
|
|
|
2015-03-26 19:31:36 -04:00
|
|
|
Example Playbook
|
|
|
|
----------------
|
2015-02-27 08:56:41 -05:00
|
|
|
|
2015-03-26 19:31:36 -04:00
|
|
|
The simplest way to include the role in your playbook is to base it off the below configuration. The crucial
|
|
|
|
part is to configure the rookeries_app_config and the app_nginx_hostname (inherited from the nginx-uwsgi-supervisor
|
|
|
|
role).
|
|
|
|
|
2015-02-27 08:56:41 -05:00
|
|
|
- hosts: servers
|
2015-03-26 19:31:36 -04:00
|
|
|
sudo: yes
|
|
|
|
vars:
|
|
|
|
my_rookeries_app_config:
|
|
|
|
rookeries_environment_name: ...
|
|
|
|
...
|
2015-02-27 08:56:41 -05:00
|
|
|
roles:
|
2015-06-25 18:00:07 -04:00
|
|
|
- role: ansible-rookeries
|
|
|
|
rookeries_app_config: "{{ vagrant_rookeries_app_config }}"
|
|
|
|
rookeries_db: "{{ rookeries_db_setup }}"
|
|
|
|
rookeries_environ_type: prod
|
|
|
|
rookeries_package_path: "{{ rookeries_package }}"
|
|
|
|
rookeries_app_hostname: rookeries.org
|
2015-07-14 08:28:56 -04:00
|
|
|
|
|
|
|
*TODO: Add in section for description of symlink enabled deployments.*
|
2015-03-26 19:31:36 -04:00
|
|
|
|
|
|
|
Role Variables
|
|
|
|
--------------
|
|
|
|
|
2015-07-14 08:28:56 -04:00
|
|
|
*TODO: A description of newer role variables for version number and app name*
|
|
|
|
|
2015-03-26 19:31:36 -04:00
|
|
|
- rookeries_db:
|
|
|
|
- This configures database soecific inforaation
|
|
|
|
- keys:
|
|
|
|
- db_name:
|
|
|
|
- The name of the database to store info in.
|
|
|
|
- username:
|
|
|
|
- The database username for the above specified database.
|
|
|
|
- password:
|
|
|
|
- The database username for the above specified database.
|
2015-05-12 23:48:10 -04:00
|
|
|
- host:
|
2015-08-22 13:49:25 -04:00
|
|
|
- The hostname of the CouchDB database server.
|
2015-05-12 23:48:10 -04:00
|
|
|
- Default: localhost
|
|
|
|
- port:
|
2015-08-22 13:49:25 -04:00
|
|
|
- The port of the CouchDB database server.
|
|
|
|
- Default: 5984
|
2015-03-26 19:31:36 -04:00
|
|
|
- rookeries_app_name:
|
|
|
|
- Configures the unique name of the rookeries app.
|
|
|
|
- Default: rookeries
|
2015-06-25 18:00:07 -04:00
|
|
|
- rookeries_app_hostname:
|
|
|
|
- Configures the hostname of site (https://my.rookeries_site.net) serving the rookeries app.
|
|
|
|
- Default: localhost
|
2015-03-26 19:31:36 -04:00
|
|
|
- rookeries_environ_type:
|
|
|
|
- The mode of the setup. Setting to "dev" enables the use of a SMTP fake server to help with development.
|
|
|
|
- Default: dev
|
|
|
|
- rookeries_app_config:
|
|
|
|
- Application specific configuration for running rookeries
|
2015-03-26 13:41:03 -04:00
|
|
|
|
|
|
|
This role depends on the nginx_uwsgi_supervisor role, and hence reuses the variables provided by that role. See the
|
|
|
|
[Ansible Galaxy role page] (https://galaxy.ansible.com/list#/roles/2637) for details.
|
|
|
|
|
|
|
|
Dependencies
|
|
|
|
------------
|
|
|
|
|
|
|
|
- nginx_uwsgi_supervisor
|
|
|
|
- Setup common NGINX, UWSGI and Supervisor infrastructure.
|
|
|
|
- Repository: https://bitbucket.org/dorianpula/ansible-nginx-uwsgi-supervisor
|
|
|
|
- Ansible Galaxy: https://galaxy.ansible.com/list#/roles/2637
|
|
|
|
|
2015-02-27 08:56:41 -05:00
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
AGPL v3
|
|
|
|
|
|
|
|
Author Information
|
|
|
|
------------------
|
|
|
|
|
2015-03-26 13:41:03 -04:00
|
|
|
Dorian Pula
|
|
|
|
|
|
|
|
- twitter: @dorianpula
|
|
|
|
- email: dorian.pula at amber-penguin.software.ca
|
|
|
|
- www: http://amber-penguin-software.ca
|
|
|
|
|
|
|
|
This role is a spin-off of the technology developed for the [Rookeries project] (http://rookeries.org/)
|
|
|
|
|
|
|
|
|
|
|
|
Repositories
|
|
|
|
------------
|
|
|
|
|
|
|
|
- Main: https://bitbucket.org/dorianpula/ansible-rookeries
|