Add additional variables to allow for more configurability.

This commit is contained in:
Dorian 2015-07-14 08:28:56 -04:00
parent cbfa3ba1c7
commit 3a1cad7105
4 changed files with 13 additions and 6 deletions

View File

@ -37,9 +37,13 @@ role).
rookeries_package_path: "{{ rookeries_package }}"
rookeries_app_hostname: rookeries.org
*TODO: Add in section for description of symlink enabled deployments.*
Role Variables
--------------
*TODO: A description of newer role variables for version number and app name*
- rookeries_db:
- This configures database soecific inforaation
- keys:

View File

@ -10,13 +10,16 @@ rookeries_db:
host: localhost
port: 3306
# Name of the rookeries app
rookeries_app_name: rookeries
# The mode of the setup. Setting to "dev" enables the use of a SMTP fake server to help with development.
rookeries_environ_type: dev
# TODO Clean up and simplify the configuration.
# Name of the rookeries app
rookeries_app_name: rookeries
rookeries_version: 0.4.9
rookeries_app_hostname: localhost
rookeries_local_uwsgi_port: 8001
# The default configuration for running rookeries
rookeries_app_config:

View File

@ -8,7 +8,6 @@ galaxy_info:
platforms:
- name: Ubuntu
versions:
- saucy
- trusty
categories:
- development
@ -17,6 +16,6 @@ dependencies:
- { role: dorianpula.nginx-uwsgi-supervisor,
app_name: "{{ rookeries_app_name }}",
app_nginx_hostname: "{{ rookeries_app_hostname }}",
app_uwsgi_port: 8001,
app_uwsgi_port: "{{ rookeries_local_uwsgi_port }}",
app_uwsgi_executable: "rookeries:make_rookeries_app()",
app_uwsgi_envs: "{{ rookeries_app_config }}"}

View File

@ -3,8 +3,9 @@
app_name: "{{ rookeries_app_name }}"
# Introduced from deployment playbook
rookeries_venv: "{{ virtualenv_root_path }}/rookeries"
rookeries_package: rookeries-0.5.0.tar.bz2
rookeries_venv: "{{ virtualenv_root_path }}/{{ rookeries_app_name }}"
rookeries_package: "{{ rookeries_app_name }}-{{ rookeries_version }}.tar.bz2"
rookeries_package_path: "{{ rookeries_package }}"
# Extra virtualenv if working in a dev environment to provide the mailsink testing server