Skip to content

Instantly share code, notes, and snippets.

View ahonor's full-sized avatar

Alex Honor ahonor

View GitHub Profile
<module name="bintray-upload" shell="bash" version="1.1.0" requires="sh" >
<description>uploads the file</description>
<license>apl 2.0</license>
<commands>
<command name="deb">
<description>publish debian packages to bintray</description>
<options>apikey, file</options>
<scriptfile> $MODULE_DIR/bin/debtool $@</scriptfile>
</command>
@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?
@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: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: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: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}"/>
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;
@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
@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...