Files @ 502fdc081d35
Branch filter:

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

branko
MAR-32: Added initial scaffolding for testing web_server role:

- Added Molecule configuration for for bringing up a couple of instances.
- Added test playbook that sets-up test instances.
- Fixed issues with file mode in tasks (added leading 0).
- Added test data (TLS private keys and certificates).
- Added dummy test file.
---

dependencies:
  - role: wsgi_website
    fqdn: wsgireq.{{ testsite_domain }}
    admin_uid: 3002
    uid: 2002
    wsgi_application: wsgi:application
    static_locations:
      - /static/
    https_tls_key: "{{ lookup('file', inventory_dir + '/tls/wsgireq.' + testsite_domain + '_https.key') }}"
    https_tls_certificate: "{{ lookup('file', inventory_dir + '/tls/wsgireq.' + testsite_domain + '_https.pem') }}"
    environment_variables:
      WEBSITE_NAME: "Majic Ansible Roles Test Site"
    wsgi_requirements:
      - futures==3.1.1
      - gunicorn==19.6.0
  - role: database
    db_name: wsgi_{{ testsite_domain_underscores }}
    db_password: wsgi_{{ testsite_domain_underscores }}