This directory contains automation scripts for managing Ansible Automation Platform (AAP) clusters and disaster recovery operations.
For comprehensive documentation, see docs/scripts-guide.md.
Scripts for managing AAP on OpenShift/Kubernetes:
scale-aap-up.sh- Scale AAP pods to operational replica countsscale-aap-down.sh- Scale AAP pods to zero for standby mode- Configuration:
aap-cluster.service- Systemd service unit for RHEL
Scripts for managing AAP on RHEL servers:
start-aap-cluster.sh- Start all AAP systemd servicesstop-aap-cluster.sh- Stop all AAP systemd services
Scripts for EDB Failover Manager integration:
efm-aap-failover-wrapper.sh- Wrapper called by EFM during failoverefm-orchestrated-failover.sh- Orchestrated failover with notificationsmonitor-efm-scripts.sh- Monitor EFM script execution- Configuration:
efm.properties.sample- Sample EFM configuration
Reusable code libraries (in lib/):
lib/aap-scaling.sh- Common AAP scaling functionslib/logging.sh- Standardized logging functions
All testing, validation, and CI/CD infrastructure has been moved to the tests/ directory:
- DR Testing Scripts:
tests/scripts/- Failover testing, RTO/RPO measurement, data validation - CI Hooks:
tests/hooks/- Pre-commit hooks for code quality - OpenShift Testing:
tests/openshift/dr-testing/- CronJob-based automated testing
See tests/README.md for complete testing documentation.
# Scale up AAP in a specific cluster
./scripts/scale-aap-up.sh <cluster-context>DR testing scripts have moved to tests/scripts/. See tests/README.md.
- OpenShift Scripts:
ocCLI, valid kubeconfig, RBAC permissions - RHEL Scripts: Root/sudo access, AAP installed via standard installer
- DR Testing: Access to both DC1 and DC2 clusters
Comprehensive guides are available in the docs/ directory:
- scripts-guide.md - Complete guide to all scripts
- dr-testing-guide.md - DR testing procedures
- manual-scripts-doc.md - Runbooks and manual procedures
# 1. Scale up AAP in standby DC
./scripts/scale-aap-up.sh <dc2-context>
# 2. Validate data integrity (see tests/)
./tests/scripts/validate-aap-data.sh validate <dc2-context>
# 3. Generate DR report (see tests/)
./tests/scripts/generate-dr-report.sh --latest# 1. Copy scripts to EFM directory
sudo cp scripts/efm-*.sh /usr/edb/efm-4.x/bin/
# 2. Configure EFM (see docs/scripts-guide.md)
sudo vi /etc/edb/efm-4.x/efm.properties
# 3. Test the integration
sudo -u efm /usr/edb/efm-4.x/bin/efm-aap-failover-wrapper.sh test standby test test# Run all quality checks before committing
./tests/scripts/run-ci-checks-locally.shFor issues, questions, or contributions, see the main README.md.