Files @ 36e1c9460cd6
Branch filter:

Location: majic-ansible-roles/testsite/group_vars/backup.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.
---

local_mail_aliases:
  root: "root john.doe@{{ testsite_domain }}"

smtp_relay_host: mail.{{ testsite_domain }}

smtp_relay_truststore:  "{{ lookup('file', inventory_dir + '/tls/ca.pem') }}"

backup_clients:
  - server: web.{{ testsite_domain }}
    public_key: "{{ lookup('file', inventory_dir + '/ssh/web.' + testsite_domain + '.pub') }}"
    ip: 10.32.64.18
  - server: mail.{{ testsite_domain }}
    public_key: "{{ lookup('file', inventory_dir + '/ssh/mail.' + testsite_domain + '.pub') }}"
    ip: 10.32.64.15
  - server: ldap.{{ testsite_domain }}
    public_key: "{{ lookup('file', inventory_dir + '/ssh/ldap.' + testsite_domain + '.pub') }}"
    ip: 10.32.64.12
  - server: xmpp.{{ testsite_domain }}
    public_key: "{{ lookup('file', inventory_dir + '/ssh/xmpp.' + testsite_domain + '.pub') }}"
    ip: 10.32.64.16
  - server: backup.{{ testsite_domain }}
    public_key: "{{ lookup('file', inventory_dir + '/ssh/backup.' + testsite_domain + '.pub') }}"
    ip: 127.0.0.1
  - server: ws01.{{ testsite_domain }}
    public_key: "{{ lookup('file', inventory_dir + '/ssh/ws01.' + testsite_domain + '.pub') }}"
    ip: 10.32.64.22

backup_host_ssh_private_keys:
  dsa: "{{ lookup('file', inventory_dir + '/ssh/backup_server_dsa_key') }}"
  rsa: "{{ lookup('file', inventory_dir + '/ssh/backup_server_rsa_key') }}"
  ed25519: "{{ lookup('file', inventory_dir + '/ssh/backup_server_ed25519_key') }}"
  ecdsa: "{{ lookup('file', inventory_dir + '/ssh/backup_server_ecdsa_key') }}"