Configuration Generation
Cheat sheet · https://pcornel.dk/topic.php?topic=5597
Answer
Configuration Generation transforms authoritative intent, inventory and variables into candidate device-specific configuration or structured payloads before deployment.
Remember
- Template rendered ≠ configuration valid on the device.
- Deterministic text ≠ correct intent.
- Variable present ≠ correct effective value after precedence/merge.
- Diff looks small ≠ blast radius small.
First checks
ansible-playbook render.yml— render configs from SoT- Templates per platform/role — structure
- Rendered config artefacts — review
Commands
diff -u <expected-file> <actual-file>- Read-only/validation observation for line-level differences between the selected expected and actual/generated/restored…
Verify in this order
SoT + templates → rendered configs
Where it usually breaks
Generated configuration proves a transformation result; it does not prove the source intent, platform semantics or eventual device/network outcome are correct.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Configuration Generation Network Automation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / scope | Source revision and exact targets are explicit | Stale inventory, hidden selector or wrong variables change scope |
| Management operation | Transport/model/payload and per-device response are traceable | Auth/capability/parser differences hide partial or wrong execution |
| Device state | Effective and persistent state are read back | Accepted config/API result is mistaken for convergence |
| Network proof | Original control/data-plane or service test passes | Automation summary substitutes for actual network acceptance |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5597