Skip to content

Instantly share code, notes, and snippets.

View ahonor's full-sized avatar

Alex Honor ahonor

View GitHub Profile
[workflow] Begin execution: rundeck-workflow-node-first context: null
preparing for sequential execution on 1 nodes
Executing command on node: db1.prod.guitars, NodeEntryImpl{tags=[], attributes={osFamily=unix, tags=, username=db1, nodename=db1.prod.guitars, hostname=192.168.50.22, node-executor=mtl-exec, ssh-keypath=/var/lib/rundeck/.ssh/id_rsa, osName=Linux}, project='null'}
NodeSet: MultiNodeSelector{nodenames=[db1.prod.guitars]}
Workflow: com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy$stepFirstWrapper@6c6599db
data context: {node={tags=, username=db1, os-version=, description=, name=db1.prod.guitars, os-arch=, node-executor=mtl-exec, hostname=192.168.50.22, os-name=Linux, ssh-keypath=/var/lib/rundeck/.ssh/id_rsa, os-family=unix}, job={id=c5ac9500-7d80-4891-bcda-ca9723dadd7b, project=prod, loglevel=DEBUG, username=admin, user.name=admin, name=blar, serverUUID=null, group=null, url=http://192.168.50.3:4440/project/prod/execution/follow/9, serverUrl=http://192.168.50.3:4440/, execid=9
@ahonor
ahonor / gist:9819033
Created March 27, 2014 21:15
openstack services
[root@openstack ~(keystone_admin)]# openstack-service status
neutron-dhcp-agent (pid 24003) is running...
neutron-l3-agent (pid 24015) is running...
neutron-metadata-agent (pid 24027) is running...
neutron-openvswitch-agent (pid 24039) is running...
neutron (pid 24142) is running...
openstack-ceilometer-alarm-evaluator (pid 24154) is running...
openstack-ceilometer-alarm-notifier (pid 24166) is running...
openstack-ceilometer-api (pid 24182) is running...
openstack-ceilometer-central (pid 24204) is running...
@ahonor
ahonor / gist:10671410
Created April 14, 2014 18:23
openstack build.gradle
version = '1.0.0'
defaultTasks 'clean','build'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.5
ext.rundeckPluginVersion= '1.1'
configurations{
//declare custom pluginLibs configuration to include only libs for this plugin
pluginLibs
/*
* CreateInstanceStep.java
*
* User: Alex Honor <a href="mailto:alex@simplifyops.com">alex@simplifyops.com</a>
* Created: 04/14/14 9:27 AM
*
*/
package org.rundeck.plugin.openstack;
version = '1.0.0'
defaultTasks 'clean','build'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.5
ext.rundeckPluginVersion= '1.1'
configurations{
//declare custom pluginLibs configuration to include only libs for this plugin
pluginLibs
@ahonor
ahonor / gist:7e9160475b34c0fdc537
Created May 17, 2014 21:58
oracle/exploit/jobs.xml
<?xml version="1.0" encoding="UTF-8"?>
<joblist>
<job>
<id>7d151ab4-979d-4084-b1eb-8813422e21d6</id>
<loglevel>INFO</loglevel>
<sequence keepgoing="false" strategy="node-first">
<command>
<jobref name="job2" group="oracle/exploit" nodeStep="true">
<arg line="-test ${node.hostname}"/>
@ahonor
ahonor / gist:0a6f53c8e2d5c0febb40
Created June 30, 2014 23:49
conditional args to a command
<joblist>
<job>
<id>8e8ab4b9-665e-4aae-b7e0-601845d3c152</id>
<loglevel>INFO</loglevel>
<sequence keepgoing='false' strategy='node-first'>
<command>
<scriptargs />
<script><![CDATA[#!/usr/bin/env bash
clopts=()
@ahonor
ahonor / gist:dd699e8b8d9147524bdb
Last active August 29, 2015 14:03
example aclpolicy
description: 'Given user in group "releng" and for job matches "anvils/Promote", then allow action [read,run].'
context:
project: 'anvils'
for:
job:
- match:
group: 'anvils'
name: 'Promote'
allow: [run,read]
by:
@ahonor
ahonor / gist:02fbaaac4baa2d8738a2
Last active August 29, 2015 14:05
/vagrant/rerun
Vagrant.configure("2") do |config|
RERUN_IP="192.168.50.200"
config.vm.box = "centos-63-x64"
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-63-x64.box"
config.vm.define :rerun do |rerun|
rerun.vm.hostname = "rerun"
rerun.vm.network :private_network, ip: "#{RERUN_IP}"
rerun.vm.provision :shell, inline: "/vagrant/rerun"
@ahonor
ahonor / gist:afa50c4d0484f19408b6
Last active August 29, 2015 14:05
example project archive code
# Where to store the login cookies
COOKIES=$(mktemp "/tmp/cookies.XXXXX")
# Curl opts to accept insecure certs, use a cookie jar, follow redirects, show only errors, fail fast.
CURLOPTS="-k -f -s -S -L -c $COOKIES -b $COOKIES"
#
# _rundeck_curl_ - The curl wrapper function
#
# rundeck_curl ?curl-args?