Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Rundeck Basic Workflow: Step-by-Step

Here’s a clear explanation of the Rundeck Basic Workflow, perfect for beginners or teams implementing Rundeck for the first time.


šŸ”„ Rundeck Basic Workflow: Step-by-Step

This describes the standard flow from job creation to execution and logging.


šŸ“‹ 1. Create a Project

  • A Project is the top-level container in Rundeck.
  • Each project holds:
    • Jobs
    • Node definitions
    • ACL policies
    • Plugins/configuration
rd projects create --project my-project

šŸ› ļø 2. Define Nodes (Targets)

  • Nodes are the machines or environments where jobs will run.
  • Methods:
    • Static file (resources.xml or YAML)
    • Cloud-based discovery (AWS, Azure, Kubernetes, etc.)
    • Script-based plugin
- hostname: web01.example.com
  username: ubuntu
  tags: web
Code language: CSS (css)

🧱 3. Create a Job

  • Jobs are defined using:
    • GUI
    • YAML/XML
    • REST API
    • Rundeck CLI (rd jobs)
  • Jobs contain:
    • Steps (commands/scripts)
    • Node filters
    • Options (parameters)
    • Notifications
    • Scheduling (cron)

šŸ”§ 4. Configure Workflow

  • Define one or more Steps:
    • Inline shell script
    • External scripts
    • Ansible/Terraform/kubectl
  • Choose execution type:
    • Sequential
    • Parallel
    • Node-first vs. Step-first

ā° 5. Schedule or Trigger the Job

  • Manual: via UI or CLI
  • Scheduled: cron-based
  • API/Webhook: from Jenkins, GitHub, or external alerting tools
rd run -j "backup-job"
Code language: JavaScript (javascript)

āš™ļø 6. Execution on Nodes

  • Rundeck server connects to nodes (via SSH, WinRM, plugins).
  • Executes each job step in order.
  • Context variables and options are passed to scripts.

šŸ“¬ 7. Notifications (Optional)

  • Send job status to:
    • Email
    • Slack
    • Webhook
    • PagerDuty
  • Configurable per job or globally

šŸ“ 8. Logging and Output

  • Each job run is recorded:
    • Start/End time
    • User
    • Node output logs
    • Status (SUCCEEDED/FAILED)
  • View logs in UI or export via CLI/API
rd executions follow 12345

🧠 Rundeck Basic Workflow Visual Summary:

[ Project ]
    ↓
[ Job Definition ]
    ↓
[ Workflow Steps ]
    ↓
[ Node Selection ]
    ↓
[ Job Execution ]
    ↓
[ Notification & Logs ]
Code language: CSS (css)

āœ… Summary: Why This Matters

StepPurpose
ProjectOrganize jobs and configs
NodesTarget environments
JobDefines what will run
WorkflowLogic and steps
ExecutionActual run time on node
NotificationAlerting and visibility
LoggingAudit and debugging

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x