Validation Workflow
This guide is auto-synced from
docs/validation.mdin the pocket-automations repo. Edit it there — changes here are overwritten on every build.
Run validation after playbooks/site.yml or whenever an operator changes inventory, secrets, DNS, backend services, or reverse proxy settings.
bash
ansible-playbook -i inventories/production-single-host/hosts.yml playbooks/validate.ymlEach host writes a report to:
text
/var/lib/pocket-automations/validation-report.mdThe report has four operator-facing sections:
PASS: checks that succeeded.WARN: non-blocking issues or incomplete optional configuration.FAIL: problems that should be fixed before considering the deployment ready.Manual Igniter Steps Remaining: application workflows that must be completed in Igniter, not Ansible.
Important boundaries:
- Ansible validates infrastructure readiness.
- Igniter Provider remains the source of truth for supplier staking, service updates, unstaking, and reconciliation.
- Middleman is delegator-facing and depends on Provider public API being exposed only through the reverse proxy allowlist.
COIN_MARKET_CAP_API_KEYis optional for Middleman and produces at most a warning.
For production testing on a fresh Ubuntu VM, run the flow in this order:
- Prepare a real inventory with DNS, secrets, backend RPC endpoints, and Pocket RPC/gRPC endpoints.
- Run
ansible-playbook -i <inventory> playbooks/site.yml. - Run
ansible-playbook -i <inventory> playbooks/validate.yml. - Review the validation report on each host.
- Complete the remaining Igniter Provider and optional Middleman bootstrap workflows.
- Re-run validation after bootstrap and any service configuration changes.