Files @ 36e1c9460cd6
Branch filter:

Location: majic-ansible-roles/testsite/playbooks/roles/phpinfo/meta/main.yml - annotation

branko
MAR-27: Added initial scaffolding for testing mail_forwarder role:

- Fixed issues reported by Ansible linting check (some mode-related syntax and
one ignore.
- Added Molecule configuration for testing mandatory and optional
parameters. Covers both Debian Jessie and Debian Stretch.
- Added test playbook for setting-up the test instances. A helper relay mail
server.
- Updated both mail_server and mail_forwarder to fall-back to using
native (/etc/hosts) resolving if DNS fails. Solves issue with test environment
not having proper DNS set-up for all domains etc.
- Added a number of data/config files associated with tests.
- Added dummy test file.
---

dependencies:
  - role: php_website
    fqdn: phpinfo.{{ testsite_domain }}
    php_rewrite_urls:
      - ^(.*) /index.php
    admin_uid: 3000
    uid: 2000
    enforce_https: False
    https_tls_key: "{{ lookup('file', inventory_dir + '/tls/phpinfo.' + testsite_domain + '_https.key') }}"
    https_tls_certificate: "{{ lookup('file', inventory_dir + '/tls/phpinfo.' + testsite_domain + '_https.pem') }}"
    additional_fpm_config:
      "env[PATH]": "\"/usr/local/bin:/usr/bin:/bin\""
  - role: database
    db_name: phpinfo_{{ testsite_domain_underscores }}
    db_password: phpinfo_{{ testsite_domain_underscores }}