Files
@ 3dd7f39302f8
Branch filter:
Location: majic-ansible-roles/roles/backup_server/playbook.yml - annotation
3dd7f39302f8
1.2 KiB
text/x-yaml
MAR-29: Implemented tests for php_website role:
- Install some additional tools for testing everything.
- Updated test playbook to change allowed extensions for running PHP scripts on
parameters-optional.
- Updated error page to use correct extension for parameters-optional test
instance.
- Expanded rewrite configuration slightly for parameters-optional.
- Install libmariadb-client-lgpl-dev-compat to test mysql_config symlink
creation.
- Deploy a number of PHP pages used for testing if pages are served correctly.
- Set file permissions on deployed PHP FPM pool configuraiton files.
- Use expanded syntax when deploying TLS keys/certificates in order to avoid
issues with TAB mangling.
- Fixed set-up of Strict-Transport-Security header when HTTPS enforcement is
disabled.
- Added a number of PHP and static test pages.
- Wrote tests covering full functionality of the role.
- Install some additional tools for testing everything.
- Updated test playbook to change allowed extensions for running PHP scripts on
parameters-optional.
- Updated error page to use correct extension for parameters-optional test
instance.
- Expanded rewrite configuration slightly for parameters-optional.
- Install libmariadb-client-lgpl-dev-compat to test mysql_config symlink
creation.
- Deploy a number of PHP pages used for testing if pages are served correctly.
- Set file permissions on deployed PHP FPM pool configuraiton files.
- Use expanded syntax when deploying TLS keys/certificates in order to avoid
issues with TAB mangling.
- Fixed set-up of Strict-Transport-Security header when HTTPS enforcement is
disabled.
- Added a number of PHP and static test pages.
- Wrote tests covering full functionality of the role.
ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 | ---
- hosts: all
tasks:
- name: Update all caches to avoid errors due to missing remote archives
apt:
update_cache: yes
- hosts: parameters-mandatory
roles:
- role: backup_server
backup_host_ssh_private_keys:
dsa: "{{ lookup('file', 'tests/data/ssh/server_dsa') }}"
rsa: "{{ lookup('file', 'tests/data/ssh/server_rsa') }}"
ed25519: "{{ lookup('file', 'tests/data/ssh/server_ed25519') }}"
ecdsa: "{{ lookup('file', 'tests/data/ssh/server_ecdsa') }}"
- hosts: parameters-optional
roles:
- role: backup_server
backup_host_ssh_private_keys:
dsa: "{{ lookup('file', 'tests/data/ssh/server_dsa') }}"
rsa: "{{ lookup('file', 'tests/data/ssh/server_rsa') }}"
ed25519: "{{ lookup('file', 'tests/data/ssh/server_ed25519') }}"
ecdsa: "{{ lookup('file', 'tests/data/ssh/server_ecdsa') }}"
backup_clients:
- server: client1.backup
ip: 10.31.127.1
public_key: "{{ lookup('file', 'tests/data/ssh/client1.pub') }}"
- server: client2-backup
uid: 5001
ip: 10.31.127.3
public_key: "{{ lookup('file', 'tests/data/ssh/client2.pub') }}"
|