Skip to content

Instantly share code, notes, and snippets.

@hiracy
hiracy / gist:81083f0e0b95fa23443b
Last active November 28, 2015 10:03
rundeck_zbx_node_update.rb
#!/usr/bin/env ruby
require 'yaml'
require 'zabbixapi'
USERNAME = '${job.username}'
INTERFACE_SSH_IDX = 0
def usage()
puts 'usage: zabbix_node_update.rb <rdeck_zbx_id_file_path>'
@hiracy
hiracy / gist:2ae3f562d31569516da5
Last active August 29, 2015 14:07
update_serverspec_recipes_1.x.x_to_2.x.x.sh
#!/bin/bash
TEST=0
SPEC_PATH="."
COND_EXIT_STATUS="return_exit_status"
COND_STDOUT="return_stdout"
COND_STDERR="return_stderr"
usage () {
echo "Usage: `basename $0` [options]"