Files @ 17cf34f73ca6
Branch filter:

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

branko
MAR-28: Implemented additional tests for mail_server role:

- Deploy a number of tools on clients in order to test SMTP, IMAP, and Sieve
services.
- Added one more user to LDAP directory for testing group restrictions.
- Deploy CA certificate on all testing machines for TLS validation purposes.
- Use different custom-configured cipher for mail server ciphers.
- Fixed invalid postmaster address for parameters-optional host.
- Deploy configuration files for use with Imap-CLI on client test machines.
- Updated testing of SMTP server to include checks for users that do not belong
to mail group.
- Extended some SMTP-related tests to cover both test servers.
- Some small fixes in SMTP-related tests for expected output from commands.
- Implemented tests covering Dovecot (IMAP + Sieve) functionality.
- Implemented tests for running/enabled services.
- Implemented tests for ClamAV.
- Implemented tests for firewall and connectivity.
- Implemented tests for Postfix TLS configuration.
- TODO: Tests for Sieve TLS configuration have not been written yet due to
limitation of available tools.
---

- 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 }}"