Ansible role for setting up a Rookeries instance.
Go to file
Dorian 07d364b94f Fix to restart supervisord if not service not active. 2015-05-20 10:47:07 -04:00
defaults Add database port and host configuration to role. 2015-05-12 23:48:10 -04:00
handlers Initial migration to setup ansible role from provisioning steps from Rookeries. 2015-02-27 08:56:41 -05:00
meta Setup role variable to be more reusable in other situations. 2015-03-25 09:18:23 -04:00
tasks Fix to restart supervisord if not service not active. 2015-05-20 10:47:07 -04:00
templates/dev_supervisor Add role variables to meta content itself for more flexibility. 2015-03-09 16:02:32 -04:00
vars Clean up variable definitions for role and some variables as default variables. 2015-03-13 08:36:13 -04:00
README.md Add database port and host configuration to role. 2015-05-12 23:48:10 -04:00

README.md

Ansible Rookeries

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.

This role is a work-in-progress as Rookeries itself is heavily under development.

Requirements

  • aptitude or python-apt (required by apt tasks)
  • python > 2.5 (required by ini_file tasks)
  • Ansible >= 1.8.0

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.

Example Playbook

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).

- hosts: servers
  sudo: yes
  vars:
      my_rookeries_app_config:
          rookeries_environment_name: ...
          ...
  roles:
      - { role: ansible-rookeries,
          app_nginx_hostname: app.domain.net,
          app_uwsgi_port: 8080,
          rookeries_app_config: "{{ my_rookeries_app_config }}" }

Role Variables

  • 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.
      • setup_db:
        • Flag whether or not to setup the MySQL database directly on the host.
        • Default: true
      • host:
        • Flag whether or not to setup the MySQL database directly on the host.
        • Default: localhost
      • port:
        • The port of which MySQL database directly on the host.
        • Default: 3306
  • rookeries_app_name:
    • Configures the unique name of the rookeries app.
    • Default: rookeries
  • 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

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

License

AGPL v3

Author Information

Dorian Pula

This role is a spin-off of the technology developed for the [Rookeries project] (http://rookeries.org/)

Repositories