Skip to content

Instantly share code, notes, and snippets.

View ahonor's full-sized avatar

Alex Honor ahonor

View GitHub Profile
[
"Tue Feb 27 02:39:35",
"Sun Feb 25 04:06:58",
"Mon Feb 26 01:03:08"
]
rundeck-config.properties:
rdeck.base=$RDECK_BASE
#
#
grails.serverURL=$SERVER_URL
#
# default log level for jobs. Choose from: ERROR,WARN,INFO,VERBOSE,DEBUG
loglevel.default=INFO
#
@ahonor
ahonor / wrapper.sh
Last active May 14, 2022 22:22
example wrapper for rerun modules
#!/usr/bin/env bash
# Wrapper for modules sharing same prefix
: ${RERUN:=$(which rerun)}
: ${RERUN_MODULE_PREFIX:=rundeck-}
if (( $# == 1 ))
then
exec command $RERUN ${RERUN_MODULE_PREFIX}${1}
RDECK_BASE=@RDECK_BASE@
export RDECK_BASE
TOOLSDIR=$RDECK_BASE/tools
PATH=$TOOLSDIR/bin:$PATH
export PATH
if test -t 0 -a -z "$RUNDECK_CLI_TERSE"
then
@ahonor
ahonor / jenkins-notification-curl.groovy
Created September 3, 2015 15:39
example rundeck notification plugin that triggers a jenkins job via a curl command
import com.dtolabs.rundeck.plugins.notification.NotificationPlugin;
import groovy.text.SimpleTemplateEngine
/**
* This plugin executes a curl command with some arguments as defined
* by the user in the GUI. It wraps an invocation like shown below
*
* curl --user <your_jenkins_username>:<your_jenkins_API_key> http://<jenkins_job_url>
*
*/
- Homestar.local:
description: The production redis server.
hostname: Homestar.local
nodename: Homestar.local
tags: 'redis_server,production'
username: greg
- bartholemew:
description: Webapp node
hostname: bartholemew
nodename: bartholemew
description: 'Acess for dev in guitars-production.'
context:
project: 'guitars-production'
for:
resource:
- allow: read
job:
- equals:
group: 'web'
name: 'Status'
description: 'Given user in group "releng" and for job matches "release/.*", then allow action [read,run].'
context:
project: '(guitars-stage|guitars-production)'
for:
resource:
- allow: read
job:
- match:
group: 'release'
name: '.*'
@ahonor
ahonor / gist:f114d5da2084daea9186
Last active August 29, 2015 14:20
ops.aclpolicy
description: 'Given user in group "ops" and for adhoc commands and jobs matching "web/.*", then allow action [read,run] on nodes tagged 'www'.
context:
project: 'guitars-production'
for:
resource:
- allow: read
job:
- match:
group: 'web'
name: '.*'
@ahonor
ahonor / gist:637a479995761b0b5f69
Created November 24, 2014 17:48
rerun module DSL
name waitfor
description "waits for stuff"
requires othermodule
externals a b c
version 1.0.0
command:ping() {