Automation · Configuration Management
Enforcement
Cheat sheet · https://pcornel.dk/topic.php?topic=5381
Answer
Enforcement is applying the desired configuration repeatedly, such as every 30 minutes with Puppet or DSC ApplyAndAutoCorrect, so manual changes are automatically reverted.
Remember
- Regular runs enforce state.
- Puppet/DSC auto-correct.
- Communicate to admins.
First checks
ansible-playbook site.yml— enforce- Puppet/DSC auto-correct mode — continuous enforcement
- Change window for enforcement — control
Verify in this order
drift → enforcement run → compliant
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5381