Files @ 3dd7f39302f8
Branch filter:

Location: majic-ansible-roles/roles/wsgi_website/tasks/requirements.yml

branko
MAR-29: Implemented tests for php_website role:

- Install some additional tools for testing everything.
- Updated test playbook to change allowed extensions for running PHP scripts on
parameters-optional.
- Updated error page to use correct extension for parameters-optional test
instance.
- Expanded rewrite configuration slightly for parameters-optional.
- Install libmariadb-client-lgpl-dev-compat to test mysql_config symlink
creation.
- Deploy a number of PHP pages used for testing if pages are served correctly.
- Set file permissions on deployed PHP FPM pool configuraiton files.
- Use expanded syntax when deploying TLS keys/certificates in order to avoid
issues with TAB mangling.
- Fixed set-up of Strict-Transport-Security header when HTTPS enforcement is
disabled.
- Added a number of PHP and static test pages.
- Wrote tests covering full functionality of the role.
---

- 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=750

- 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="640"
  with_items:
    - wsgi_requirements.in
    - wsgi_requirements.txt

- name: Deploy Gunicorn requirements file for installation purposes
  become_user: "{{ admin }}"
  template: src="wsgi_requirements.txt.j2" dest="{{ home }}/.wsgi_requirements.txt"
            owner="{{ admin }}" group="{{ user }}" mode="640"

- name: Install Gunicorn via requirements file
  become_user: "{{ admin }}"
  pip: requirements="{{ home }}/.wsgi_requirements.txt" state=present virtualenv="{{ home }}/virtualenv"
  notify:
    - "Restart website {{ fqdn }}"