Expose the virtualenv configurations in response to symlink deployment work in ansible-rookeries role.

This commit is contained in:
Dorian 2015-07-21 07:35:26 -04:00
parent dc7f3bda3c
commit 8218ac9bec
3 changed files with 17 additions and 6 deletions

View File

@ -72,8 +72,19 @@ into sections and described below:
- app_uwsgi_envs: - app_uwsgi_envs:
- (Optional) A dictionary of environment variables to pass into an app. - (Optional) A dictionary of environment variables to pass into an app.
- Default: empty dictionary - Default: empty dictionary
### Virtual Environments
### General Web: **NEW** - On occassion it is necessary to change the setup of the virtual environments on a system.
- virtualenv_root_path:
- Path to where the virtual environments are installed
- Default: web_root_path/virtualenvs
- app_venv:
- Path to the application's virtualenv.
- Default: virtualenv_root_path/app_name
### General Web
These variables are not as crucial to configure. They do give good defaults for configuring the system in a consistent, These variables are not as crucial to configure. They do give good defaults for configuring the system in a consistent,
POSIX/LSB-friendly and user-friendly manner. See the section on Default File Structure for more details. POSIX/LSB-friendly and user-friendly manner. See the section on Default File Structure for more details.

View File

@ -16,3 +16,7 @@ app_nginx_static_path: "{{ app_root_path }}/{{ app_name }}/static/"
app_uwsgi_port: 8000 app_uwsgi_port: 8000
app_uwsgi_executable: "app:make_wsgi_app()" app_uwsgi_executable: "app:make_wsgi_app()"
app_uwsgi_envs: {} app_uwsgi_envs: {}
# Virtualenvs
virtualenv_root_path: "{{ web_root_path }}/virtualenvs"
app_venv: "{{ virtualenv_root_path }}/{{ app_name }}"

View File

@ -4,11 +4,6 @@
# User # User
web_user: "{{ ansible_env.SUDO_USER }}" web_user: "{{ ansible_env.SUDO_USER }}"
# Virtualenvs
virtualenv_root_path: "{{ web_root_path }}/virtualenvs"
uwsgi_venv: "{{ virtualenv_root_path }}/uwsgi"
app_venv: "{{ virtualenv_root_path }}/{{ app_name }}"
# NGINX # NGINX
nginx_app_config: "{{ app_name }}_uwsgi_nginx.conf" nginx_app_config: "{{ app_name }}_uwsgi_nginx.conf"
@ -16,6 +11,7 @@ nginx_app_config: "{{ app_name }}_uwsgi_nginx.conf"
supervisor_app_config: "{{ app_name }}_supervisor.conf" supervisor_app_config: "{{ app_name }}_supervisor.conf"
# UWSGI # UWSGI
uwsgi_venv: "{{ virtualenv_root_path }}/uwsgi"
uwsgi_config_path: "{{ web_root_path }}/config/uwsgi" uwsgi_config_path: "{{ web_root_path }}/config/uwsgi"
uwsgi_app_ini: "{{ app_name }}_uwsgi.ini" uwsgi_app_ini: "{{ app_name }}_uwsgi.ini"
uwsgi_app_service_name: "{{ app_name }}_uwsgi" uwsgi_app_service_name: "{{ app_name }}_uwsgi"