Files
@ a5d38f30094b
Branch filter:
Location: majic-ansible-roles/roles/wsgi_website/tasks/requirements.yml - annotation
a5d38f30094b
1.0 KiB
text/x-yaml
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.
- 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.
d9ba7498c212 d9ba7498c212 d9ba7498c212 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 d9ba7498c212 d9ba7498c212 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 d9ba7498c212 d9ba7498c212 d9ba7498c212 d9ba7498c212 d9ba7498c212 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 d9ba7498c212 d9ba7498c212 b5ed796b566a d9ba7498c212 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 0f24d5b272f5 480828d2ad47 d9ba7498c212 480828d2ad47 | ---
- name: Set-up directory for storing requirements file for upgrade checks
file:
path: "/etc/pip_check_requirements_upgrades/{{ fqdn }}"
state: directory
owner: root
group: pipreqcheck
mode: 0750
- name: Deploy WSGI requirements files for upgrade checks
template:
src: "{{ item }}.j2"
dest: "/etc/pip_check_requirements_upgrades/{{ fqdn }}/{{ item }}"
owner: root
group: pipreqcheck
mode: 0640
with_items:
- wsgi_requirements.in
- wsgi_requirements.txt
- name: Deploy Gunicorn requirements file for installation purposes
template:
src: "wsgi_requirements.txt.j2"
dest: "{{ home }}/.wsgi_requirements.txt"
owner: "{{ admin }}"
group: "{{ user }}"
mode: 0640
- name: Install Gunicorn via requirements file
become: true
become_user: "{{ admin }}"
pip:
requirements: "{{ home }}/.wsgi_requirements.txt"
state: present
virtualenv: "{{ home }}/virtualenv"
register: install_gunciron_via_requirements
notify:
- Restart WSGI services
|