Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Inputs · Runbook Automation

Direct 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.

When to use this

Use this when defining validated inputs for a runbook so it cannot hit the wrong target.

First 30 seconds

1. Runbook inputs: target, options.

2. Validate and restrict choices.

3. Safe defaults.

4. Show what will happen.

5. Log inputs.

Operational verification

operator input → validation → runbook

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Rundeck / Runbook Automation current
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformRundeck / Runbook Automation current · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when defining validated inputs for a runbook so it cannot hit the wrong target.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Inputs must be typed and validated.
  • Validation prevents running against wrong targets.
  • Use safe defaults.
Key checks
  • 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 practiceExample
Drop-down from inventoryPick host from NetBox/AWX inventory
Allowed valuesAction ∈ {restart, status}
Required ticket referenceAudit and change linkage
DefaultsSafe default (status only)
Secrets never as inputsTaken 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docRundeck / Runbook Automation current current

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%
Embedded reference data

Quick lookup tables

Runbook Automation → Inputs · operational reference

Context-specific ownership, verification, output and failure-boundary lookup for Runbook Automation → Inputs.

LayerRunbook Automation → Inputs operational reference
Context identityRundeck / Runbook Automation current + exact revision/input/target identity
Persistent intentVersioned contract/configuration with explicit ownership and prerequisites
VerificationValidate inputs/read current state → exercise bounded operation → independent target read-back
Output contractPreserve structured status/IDs/properties before human formatting
Failure boundarySeparate source/input/engine/controller execution from downstream target outcome
Depth when you need it

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.

Confirmation

Confirm action

Continue?