Files @ a5d38f30094b
Branch filter:

Location: majic-ansible-roles/roles/wsgi_website/defaults/main.yml

branko
MAR-132: Workarounds for wsgi_website Python virtual environment in Debian Stretch:

- Manually install setuptools in Python virtual environment on Debian
Stretch, otherwise the pkg-resources==0.0.0 package will mess with
pip freeze etc.
- Add back installation of futures package, even on Python 3 (since it
does not cause any harm).
- A small cleanup of how requirements are treated will be done in
separate ticket.
---

additional_nginx_config: {}
enforce_https: true
packages: []
rewrites: []
static_locations: []
use_paste: false
virtualenv_packages: []
environment_variables: {}
https_tls_certificate: "{{ lookup('file', tls_certificate_dir + '/' + fqdn + '_https.pem') }}"
https_tls_key: "{{ lookup('file', tls_private_key_dir + '/' + fqdn + '_https.key') }}"
gunicorn_version: "19.9.0"
futures_version: "3.2.0"
website_mail_recipients: "root"
environment_indicator: null
proxy_headers: {}
python_version: 2
wsgi_requirements: []

# Internal parameters.
admin: "admin-{{ fqdn | replace('.', '_') }}"
user: "web-{{ fqdn | replace('.', '_') }}"
home: "/var/www/{{ fqdn }}"
python_interpreter: "/usr/bin/python{{ python_version }}"
no_setuptools: "{% if ansible_distribution_release == 'jessie' %}{% elif ansible_distribution_release == 'stretch' %}--no-setuptools{% endif %}"