Files @ 3c03c2ea9d2a
Branch filter:

Location: majic-ansible-roles/roles/backup_client/defaults/main.yml - annotation

branko
MAR-128: Upgraded tests for bootstrap role:

- Switch to new Molecule configuration.
- Updated set-up playbook to use become: yes.
- Moved some preparatory steps outside of the main playbook (eases
idempotence tests).
- Updated tests to reference the yml inventory file.
- Updated tests to use new fixture (host instead of individual ones).
- Fixed some linting issues.
---

backup_additional_encryption_keys: []
backup_client_username: "bak-{{ ansible_fqdn | replace('.', '_') }}"
backup_server_destination: /duplicity
backup_server_port: 2222

# Internal parameters.

# GnuPG 2 binary in Debian Jessie and Debian Stretch is different. Additionally,
# Debian Jessie duply configuration expects short keys, while Debian Stretch
# expects long keys. We set-up parameters for this here in a bit of a workaround
# way instead of setting facts within the playbook.
backup_client_gnupg_details:
  jessie:
    binary: gpg2
    cutoff: '8'
  stretch:
    binary: gpg
    cutoff: '0'

gnupg_binary: "{{ backup_client_gnupg_details[ansible_distribution_release]['binary'] }}"
gnupg_key_cutoff: "{{ backup_client_gnupg_details[ansible_distribution_release]['cutoff'] }}"