Use this when exposing scripts as controlled jobs in Rundeck.
Rundeck
Rundeck is a runbook automation platform that exposes scripts and commands as jobs with options, access control, scheduling and logs, so operators can run them on nodes through a web UI or API.
1. Rundeck: job scheduler and runbook automation with projects, nodes, jobs, ACLs, key storage.
2. Node executors (SSH/WinRM).
3. Use key storage for secrets.
4. ACLs per project.
5. Back up database and projects.
user/trigger → Rundeck job → node executor → nodes
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 Target-state verification ladder Verify boundary
Rundeck uses a strict target-state ladder for job/node-step execution: request accepted → job/task succeeded → target object changed → effective runtime state confirmed → original workload verified.
Step 2 Verification path Verify boundary
Verify the Rundeck server/API identity and project first, then retrieve the exact job definition/ID and effective options. Resolve the node filter to a concrete target set before launch and verify that set matches intent. Start a controlled execution and retain its execution ID; inspect per-step/per-node status and external operation IDs. After completion, independently read the target service/resource because Rundeck success is controller-level evidence. Test a denied ACL/invalid option path and one unavailable-node path to confirm failure classification. If schedules/webhooks trigger jobs, correlate the trigger to execution ID. For upgrades, run a known canary job using representative plugins/executors and compare structured results.
Step 3 Where it fails Narrow the fault
Separate Rundeck server/project configuration, ACL/auth, job definition/options, node/resource-model resolution, plugin/executor transport, individual step/process, external target and service verification. A job can be correctly defined but select the wrong nodes; a node can resolve but be unreachable; a command can exit successfully while the application remains unhealthy. Plugin failures are not target failures, and schedule/webhook problems occur before the job executes. Do not rerun until you know whether the previous execution mutated targets. Preserve execution ID and resolved node set, diagnose the first missing expected state, correct that layer, then repeat the original job and independent target verification.
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.
Subtopics
Go one level deeper into this subject.
Rundeck architecture is a Java web server with a database for jobs and history, executing steps on nodes over SSH, WinRM or plugins, with an API and optional cluster mode.
Subtopic ProjectsRundeck projects group related jobs, nodes, keys and ACLs, typically per team or environment, keeping access and configuration separate.
Subtopic NodesRundeck nodes are the target systems jobs run on, defined by resource model sources such as files, cloud plugins or Ansible inventories, with tags and attributes for filtering.
Subtopic JobsRundeck jobs are saved, reusable automation definitions with options, workflow steps, node filters, schedules and notifications, run from the UI, API or CLI.
Subtopic WorkflowsRundeck workflows define the order of steps in a job, sequential or node-first, with error handlers per step and a strategy for whether to continue on failure.
Subtopic StepsRundeck steps are the individual actions in a job workflow: commands, inline scripts, script files, other jobs or plugin steps, run per node or once.
Subtopic OptionsRundeck options are job input parameters with types, defaults, allowed values, validation and secure options for passwords, shown as a form when the job is run.
Subtopic SchedulesRundeck schedules run jobs automatically on cron-like expressions, with time zone settings and options to prevent overlapping executions.
Subtopic ACL PoliciesRundeck ACL policies are YAML rules that grant users and groups specific rights on projects, jobs, nodes and keys, such as allowing only run, not edit, for operators.
Subtopic Key StorageRundeck Key Storage holds passwords and SSH keys used by jobs, referenced by path so secrets never appear in job definitions, with optional external backends like Vault.
Subtopic PluginsRundeck plugins add node executors, resource models, step types, notifications and integrations such as Ansible, Kubernetes, Slack and ServiceNow.
Subtopic Rundeck TroubleshootingTroubleshoot Rundeck by reading the job execution log with debug output, checking node filters and attributes, SSH or WinRM credentials in Key Storage, ACL denials and the service.log.
- Jobs have options, ACLs and logs.
- Secrets belong in Key Storage.
- Node filters select targets.
curl -sS -H 'X-Rundeck-Auth-Token: <token>' https://<rundeck>/api/45/system/info— API/system info- Project and job inventory — structure
- ACL policies — access
ReferenceWhy it matters1 section · depth on demand
In depth
Rundeck (PagerDuty Process Automation) is a runbook automation platform: it defines jobs with options and steps, runs them on nodes over SSH/WinRM or via plugins, and provides access control, scheduling, approvals and an audit log for self-service operations.
| Feature | Use |
|---|---|
| Jobs with options | Parameterised runbooks |
| Node sources | Inventory from files, cloud, Ansible |
| ACL policies | Who can run which job on which nodes |
| Workflow steps | Commands, scripts, Ansible, HTTP |
| Activity log | Audit of every execution |
It is well suited to giving help-desk or on-call staff safe buttons for routine fixes.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Rundeck is a runbook/job orchestration system organized around server instance, projects, resource-model Nodes, Jobs/workflows, options, plugins, credentials/key storage and executions. A Job encapsulates ordered workflow steps and can dispatch them locally or to filtered Nodes through executors/plugins. Project configuration and plugin availability influence how the same job behaves, while node/resource sources can change the target set independently of the job definition. Executions have durable IDs and per-step/per-node output that should be treated as controller evidence. Rundeck can integrate many external tools, but the external system remains owner of its resulting state. Therefore a successful execution shows the configured workflow completed according to Rundeck, not that an application or infrastructure objective is healthy.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Manage jobs as code/exported definitions where practical, version project configuration and plugins, and define ownership for node sources, ACL policies, key storage and execution-log retention. Separate server administration from job-author permissions and use least-privilege ACLs/tokens. Treat plugin and Rundeck upgrades as behavior changes requiring representative job tests. Node/resource source refresh can broaden or narrow job scope, so critical jobs should validate resolved targets before mutation. Schedule cleanup of old executions/logs while preserving required audit history. Back up server configuration/database/key-storage according to deployment architecture and test recovery. For self-service jobs, constrain options, approvals and target filters so convenience does not become arbitrary privileged execution.
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 > Rundeck. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.rundeck.com/docs/ · confidence 94%Quick lookup tables
→ Rundeck · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for → Rundeck.
| Layer | Rundeck operational reference |
|---|---|
| Runtime/ownership | Rundeck / Runbook Automation current · identify controller/worker/target ownership before mutation |
| Persistent intent | Versioned configuration/playbook/workflow with explicit dependencies and least-privilege identity |
| Verification | curl -fsS -H "X-Rundeck-Auth-Token: $TOKEN" "$RUNDECK_URL/api/45/system/info"; curl -fsS -H "X-Rundeck-Auth-Token: $TOKEN" "$RUNDECK_URL/api/45/project/$PROJECT/jobs" |
| Expected interpretation | Server/project identity, job definition/version, options, resolved nodes and execution ID are known, and target state is verified independently after the execution. |
| Recovery boundary | Preserve correlation IDs + pre-state, then verify target/service independently after remediation |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Retain server/project/job ID, job revision/export hash when available, execution ID, actor/token identity, option values excluding secrets, resolved nodes, workflow step/plugin, per-node result, start/end timestamps and final execution state. Execution logs are diagnostics; API metadata provides a more stable index. Distinguish queued/scheduled state, controller execution failure, node dispatch/connectivity failure and target command/application failure. For external API/plugin steps, keep returned operation IDs. Secret/key-storage values must never be copied to ordinary logs. If a job affects many nodes, preserve the exact succeeded/failed target sets so remediation does not rerun already-completed work unnecessarily.