Change 32873

russell_jackson (Russell C. Jackson (Rusty))
Russell C. Jackson (Rusty) committed this change into //guest/russell_jackson/ansible-sdp
Request Review
Download .zip
Add full-integration Molecule scenarios for both ansible roles

roles/{perforce-sdp-install,perforce-sdp-monitoring}/molecule/default/ each with
molecule.yml + prepare.yml + converge.yml + verify.yml. Uses the docker driver
with geerlingguy systemd images on Ubuntu 22.04 and Rocky 9 (Debian + RedHat/EL).

- install: prepare creates SDP volume dirs; converge runs the role (fresh SDP
  install -> p4d up) then configure_new_server.sh; verify asserts the service is
  active, p4 info reports ServerID master, and runs the SDP functional test
  harness (run_sdp_tests).
- monitoring: prepare brings up + configures p4d via the install role; converge
  applies the monitoring role; verify checks the probe scripts/cron are deployed
  and runs p4_healthcheck.sh, asserting p4_up=1 against the live server.

Idempotence step omitted (a full p4d install is not idempotent). README documents
prerequisites and usage. Validated with ansible-playbook --syntax-check and
ansible-lint (production profile clean for both the scenarios and the whole
project).
  • Files 9
  • Comments 0
1 edited 8 added 0 deleted
README.md#4
Loading...
roles/perforce-sdp-install/molecule/default/converge.yml#1
Loading...
roles/perforce-sdp-install/molecule/default/molecule.yml#1
Loading...
roles/perforce-sdp-install/molecule/default/prepare.yml#1
Loading...
roles/perforce-sdp-install/molecule/default/verify.yml#1
Loading...
roles/perforce-sdp-monitoring/molecule/default/converge.yml#1
Loading...
roles/perforce-sdp-monitoring/molecule/default/molecule.yml#1
Loading...
roles/perforce-sdp-monitoring/molecule/default/prepare.yml#1
Loading...
roles/perforce-sdp-monitoring/molecule/default/verify.yml#1
Loading...
Tip: Use n and p to cycle through the changes.