Use this when defining validated inputs for a runbook so it cannot hit the wrong target.
Inputs · Runbook Automation
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.
1. Runbook inputs: target, options.
2. Validate and restrict choices.
3. Safe defaults.
4. Show what will happen.
5. Log inputs.
operator input → validation → runbook
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Verify a runbook input contract with representative UI/API/CLI executions. Test required fields, defaults, invalid pattern/value, secure options, dynamic-value failure and a boundary case such as an empty target set. Confirm rejected options do not create an execution or mutate targets. For an accepted run, inspect the execution record to show which non-secret options were resolved, which nodes/steps were selected and which execution ID owns the outcome. Then independently read the target state. If an option changes command arguments, capture the safely rendered argv or plugin parameter mapping rather than only the original form value. Re-run a known-safe fixture after a job definition change to show backward compatibility for existing callers.
Step 2 Common mistakes Narrow the fault
- Inputs without validation.
Step 3 Where it fails Narrow the fault
The first boundary is option definition/validation, followed by authorization to run the job, execution scheduling, node/target resolution, step parameter mapping and the target operation itself. A valid option does not mean the caller is authorized; a started execution does not mean any node matched; and a completed step does not show the service outcome. Dynamic option providers and secret stores are dependencies with their own failures. Do not loosen input regex/choice restrictions to work around a target problem. Preserve execution ID and resolved safe options, then diagnose the earliest failing step. After remediation, repeat the same runbook request and confirm both execution semantics and target read-back.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Inputs must be typed and validated.
- Validation prevents running against wrong targets.
- Use safe defaults.
- Input parameters with validation — safety
- Allowed values (dropdowns) — reduce errors
- Defaults — safe
ReferenceWhy it matters1 section · depth on demand
In depth
Runbook inputs are the parameters an operator supplies when starting a runbook job — host, service, ticket number, reason. Constraining them with types, lists and validation lets less experienced staff run jobs safely.
| Input practice | Example |
|---|---|
| Drop-down from inventory | Pick host from NetBox/AWX inventory |
| Allowed values | Action ∈ {restart, status} |
| Required ticket reference | Audit and change linkage |
| Defaults | Safe default (status only) |
| Secrets never as inputs | Taken from credential store |
Show the resolved inputs at the start of the job log so the run is self-documenting.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Runbook inputs translate an operator/API request into a controlled execution. In Rundeck-style job options, inputs are named options that may be required or optional, have defaults, static or dynamic allowed values, validation patterns, secure handling and file/text types. These option values become part of the job execution context and can influence node selection, step arguments or workflow branching. The safety property comes from constraining the option contract before command construction, not from trusting the runbook author to remember every edge case. A runbook should distinguish operator intent (environment, resource ID, requested mode) from derived internal values and from credentials. Dynamic option sources introduce another dependency boundary: the option list can be unavailable or stale independently of the job itself.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Treat runbook options as a versioned interface used by people, APIs and scheduled callers. Changes to option names, defaults, allowed values or required status can break callers even when the internal workflow remains compatible. Prefer constrained choices for dangerous modes, descriptions that explain units/scope, and secure option types for values that must not appear in logs. Avoid shell-interpolating raw option text; pass values through typed plugin/API fields or safely quoted argv where possible. Keep approval/change-ticket metadata separate from the technical target input so audit policy can require both. If dynamic option providers are used, define caching/failure behavior. Store job definitions in source control/exported configuration where possible so input-contract changes are reviewable and recoverable.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Runbook Automation > Inputs. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.rundeck.com/docs/manual/jobs/job-options.html · confidence 94%Quick lookup tables
Runbook Automation → Inputs · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for Runbook Automation → Inputs.
| 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 |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Runbook output should link the validated request to an immutable execution identity. Record job UUID/name, execution ID, non-secret option values or normalized summaries, selected nodes, workflow step results and final status. Secure option values should be masked and should not be copied into notifications or command logs. Distinguish option-validation failure from job scheduling, node dispatch and step execution failures. If a dynamic option source failed, report that dependency explicitly instead of presenting 'no choices' as a valid empty list. For successful runs, provide a concise result plus links/IDs for detailed execution output, then verify the consumer-visible target state separately. This makes self-service automation auditable without turning logs into a secret store.