Automation · Runbook Automation
Inputs
Cheat sheet · https://pcornel.dk/topic.php?topic=5550
Answer
Inputs for runbooks are the values an operator supplies, such as host name, service or incident number, defined with types and validation so the runbook cannot be run against the wrong target.
Remember
- Inputs must be typed and validated.
- Validation prevents running against wrong targets.
- Use safe defaults.
First checks
- Input parameters with validation — safety
- Allowed values (dropdowns) — reduce errors
- Defaults — safe
Verify in this order
operator input → validation → runbook
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.
Runbook Automation → Inputs · operational reference
| Layer | Runbook Automation → Inputs operational reference |
|---|---|
| Context identity | Rundeck / Runbook Automation current + exact revision/input/target identity |
| Persistent intent | Versioned contract/configuration with explicit ownership and prerequisites |
| Verification | Validate inputs/read current state → exercise bounded operation → independent target read-back |
| Output contract | Preserve structured status/IDs/properties before human formatting |
| Failure boundary | Separate source/input/engine/controller execution from downstream target outcome |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5550