Files @ 17cf34f73ca6
Branch filter:

Location: majic-ansible-roles/roles/preseed/playbook.yml

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.
---

- hosts: parameters-mandatory
  roles:
    - role: preseed

- hosts: parameters-optional
  roles:
    - role: preseed
      ansible_key: CUSTOMKEY
      preseed_country: RS
      preseed_directory: /tmp/custom_preseed_files_location
      preseed_dns: 1.1.1.1
      preseed_domain: example.com
      preseed_gateway: 2.2.2.2
      preseed_hostname: testing
      preseed_ip: 3.3.3.3
      preseed_keymap: sv
      preseed_language: sr
      preseed_locale: en_UK.UTF-8
      preseed_mirror_directory: /
      preseed_mirror_hostname: ftp.de.debian.org
      preseed_mirror_proxy: http://proxy.local
      preseed_netmask: 255.255.0.0
      preseed_network_auto: no
      preseed_network_interface: eth1
      preseed_root_password: myrootpassword
      preseed_timezone: Europe/Belgrade

- hosts: parameters-optional-with-overrides
  roles:
    - role: preseed
      preseed_directory: /tmp/custom_preseed_files_location
      ansible_key: CUSTOMKEY
      preseed_server_overrides:
        parameters-optional-with-overrides:
          country: RS
          dns: 1.1.1.1
          domain: example.com
          gateway: 2.2.2.2
          hostname: testing
          ip: 3.3.3.3
          keymap: sv
          language: sr
          locale: en_UK.UTF-8
          mirror_directory: /
          mirror_hostname: ftp.de.debian.org
          mirror_proxy: http://proxy.local
          netmask: 255.255.0.0
          network_auto: no
          network_interface: eth1
          root_password: myrootpassword
          timezone: Europe/Belgrade