Skip to content

Instantly share code, notes, and snippets.

Venkman:rundeck11 greg$ tools/bin/dispatch -p test
Venkman.local centos5
Venkman:rundeck11 greg$ tools/bin/dispatch -p test -v
centos5:
description: centos5 node
hostname: centos5
nodename: centos5
osArch: x86
osFamily: unix
osName: Linux
  • Jobs ** List jobs
  • [[https://gist.github.com/785084][Query rundeck jobs list for a project, optionally save the xml file]]
    • Existing URL: "/menu/workflows.xml?projFilter={project}"
  • Hypothetical alternatives:
    • Jobs-oriented:
      • /jobs.xml?project={project}
      • /jobs/list.xml?project={project}
    • Project-oriented:
  • /projects/jobs.xml?project={project}
@gschueler
gschueler / run.sh
Created January 26, 2011 19:27
rundeck development run script
#!/bin/bash
JAVA_OPTS="-XX:MaxPermSize=256m -Djava.security.auth.login.config=web-app/WEB-INF/jaas.conf -Xmx512m -Xms256m -server " \
grails "$@" -Dserver.port=9090 run-app
[
{
id: "locahost",
description: "Rundeck server node",
hostname: "localhost",
osArch: "x86_64",
osFamily: "unix",
osName: "Mac OS X",
osVersion: "10.6.6",
tags: ''
localhost:
description: Rundeck server node
hostname: localhost
osArch: x86_64
osFamily: unix
osName: Mac OS X
osVersion: 10.6.6
tags: ''
username: greg
@gschueler
gschueler / jobs.yaml
Created January 22, 2011 01:55
sample job file in yaml format
- id: 16
project: test
schedule:
time:
hour: '18'
minute: '28'
month: '*'
weekday:
day: '*'
loglevel: INFO
@gschueler
gschueler / rd-dispatch.sh
Created January 21, 2011 20:21
Dispatch execution to the RunDeck server using curl
#!/bin/bash
#usage: rd-dispatch.sh <server URL> <project> [command [args ...]]
errorMsg() {
echo "$*" 1>&2
}
DIR=$(cd `dirname $0` && pwd)
@gschueler
gschueler / rdjobslist.sh
Created January 18, 2011 20:32
Query rundeck jobs list for a project, optionally save the xml file
#!/bin/bash
#usage: rdjobslist.sh <server URL> <project> [output.xml]
errorMsg() {
echo "$*" 1>&2
}
DIR=$(cd `dirname $0` && pwd)
@gschueler
gschueler / rdqueue.sh
Created January 18, 2011 20:14
Script to query rundeck queue using curl/xmlstarlet
#!/bin/bash
#usage: runjob.sh <server URL> <job ID>
errorMsg() {
echo "$*" 1>&2
}
DIR=$(cd `dirname $0` && pwd)
@gschueler
gschueler / Curl job run.md
Created January 18, 2011 04:07
How to run a rundeck job using curl

Run a Job using Curl

This document describes how to use CURL to interact with the RunDeck server to invoke a Job to run.

The steps are as follows:

  1. Authenticate to the RunDeck server and acquire a session cookie.
  2. Submit run request for particular Job ID, sending session cookie.