Pcornel
Automation · Automation Fundamentals

Configuration Management

Cheat sheet · https://pcornel.dk/topic.php?topic=5162

Back to the Topic

Answer

Configuration Management maintains defined configuration and package/service state on existing managed systems, usually by comparing expected settings with observed state and correcting drift.

Remember

  • Configuration management ≠ provisioning; it normally assumes the managed resource already exists.
  • Configuration file changed ≠ service state changed correctly; reload/restart and runtime validation are separate boundaries.
  • Template rendered ≠ correct configuration; variables, defaults and platform semantics determine the effective result.
  • Agentless/agent-based transport choice ≠ configuration model; both can implement stateful management.

First checks

  • ansible-playbook site.yml --check --diff — config drift
  • Config baseline in git — desired config
  • Compliance report — state per host

Verify in this order

desired config → tool → hosts → drift report

Where it usually breaks

Configuration management can prove managed settings were applied or converged; it does not prove the dependent service or end-to-end workload is healthy without runtime verification.

Configuration Management automation boundary map

BoundaryHealthy evidenceSuspicious evidence
Intent / inputsOwner, scope and authoritative inputs are explicit and versioned where applicableHidden defaults, stale inventory or competing sources of truth
Decision / executionPlan or decision is explainable and actions are bounded per targetBlind fan-out, implicit assumptions or success based only on executor status
State / verificationTarget is re-observed and acceptance criteria prove the intended outcomeNo read-back, perpetual drift, partial side effects or unresolved exceptions
Recovery / evidenceRetry, rollback or escalation behavior is defined and auditableUnknown partial completion, unsafe retry or evidence lost during remediation

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5162

Confirmation

Confirm action

Continue?