This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import us.schueler.greg.Rest | |
//base | |
Rest.baseUrl=args[0] | |
def projectName=args[1] | |
def token =System.getenv()['rd_token'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"steps": [ | |
{ | |
"executionState": "SUCCEEDED", | |
"id": 1, | |
"stepTargetNodes": [ | |
"dignan" | |
], | |
"nodeStates": { | |
"dignan": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description: Project scope for group | |
context: | |
project: '.*' | |
for: | |
job: | |
- equals: | |
group: 'example' | |
name: 'Restart' | |
allow: [run,read] | |
- equals: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.dtolabs.rundeck.plugins.logging.StreamingLogWriterPlugin; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.dtolabs.rundeck.core.logging.LogEvent; | |
import com.dtolabs.rundeck.core.logging.LogLevel; | |
/** | |
* Opens a TCP connection, and writes JSON event messages to the socket | |
*/ | |
rundeckPlugin(StreamingLogWriterPlugin){ | |
configuration{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loglevel.default = "DEBUG" | |
rdeck.base = "/var/lib/rundeck" | |
rss.enabled = true | |
dataSource { | |
dbCreate = "update" | |
url = "jdbc:h2:file:/var/lib/rundeck/data/rundeckdb;MVCC=true" | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
description: API Application level access control | |
context: | |
application: 'rundeck' | |
for: | |
resource: | |
- equals: | |
kind: system | |
allow: [read] # allow read of system info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJ=$1 | |
shift | |
USERNODE=$1 | |
shift | |
TAGS="$*" | |
( echo $USERNODE | grep -q '@' ) && { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.dtolabs.rundeck.plugins.notification.NotificationPlugin; | |
import org.springframework.mail.javamail.*; | |
import javax.mail.internet.*; | |
import groovy.xml.MarkupBuilder | |
import groovy.text.SimpleTemplateEngine | |
//mail sender configuration | |
def mailProperties=[ | |
host: "localhost", | |
port: 25, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.dtolabs.rundeck.plugins.notification.NotificationPlugin; | |
rundeckPlugin(NotificationPlugin){ | |
onstart { | |
println("success: data ${execution}") | |
true | |
} | |
onfailure { | |
println("failure: data ${execution}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.dtolabs.rundeck.plugins.notification.NotificationPlugin; | |
import groovy.text.SimpleTemplateEngine | |
//define the plugin | |
rundeckPlugin(NotificationPlugin){ | |
//plugin title shown in GUI | |
title="Shell Notification" | |
//plugin description shown in GUI | |
description="Calls a shell script" |