Skip to content

Instantly share code, notes, and snippets.

actionjack / mcollective-plugins.spec
Created Aug 4, 2011 — forked from dcarley/mcollective-plugins.spec
RPM SPEC for bundling up some of the official mcollective plugins.
View mcollective-plugins.spec
%define giturl git://
%define gitrev d9305be
%define gituser puppetlabs
%define plugindir %{_libexecdir}/mcollective/mcollective
%define agents puppetd nettest service package filemgr nrpe puppetca puppetral
Name : mcollective-plugins
Version : 0.0.1
Release : 3.%{gitrev}
actionjack / gist:1245003
Created Sep 27, 2011 — forked from rantav/gist:626051
mvn snippet to create an rpm for tomcat war
View gist:1245003
The RPM plugin is used to create distributable apps from our war file.
To use it fire:
$ mvn install rpm:rpm
The resulting rpm is then found at Project/target/rpm/Project/RPMS/noarch/Project-versoin-1.noarch.rpm
For example: ImageServer/target/rpm/ImageServer/RPMS/noarch/ImageServer-6.5.0-1.noarch.rpm
actionjack / gist:2948167
Created Jun 18, 2012
Foreman execution expired error
View gist:2948167
execution expired
lib/net/dns.rb:36:in `lookup'
lib/net/dns.rb:61:in `dns_lookup'
lib/net/dns/a_record.rb:28:in `conflicts'
lib/net.rb:27:in `conflicting?'
app/models/orchestration/dns.rb:125:in `dns_conflict_detected?'
app/models/orchestration.rb:61:in `valid?'
app/controllers/hosts_controller.rb:93:in `create'
actionjack / gist:2953477
Created Jun 19, 2012
mcollective error
View gist:2953477
[root@qiqstanb038avm1 ~]# service mcollective start
Starting mcollective: /usr/lib/ruby/site_ruby/1.8/mcollective/pluginmanager.rb:169:in `load': no such file to load -- mcollective/facts/facter_facts.rb (LoadError)
from /usr/lib/ruby/site_ruby/1.8/mcollective/pluginmanager.rb:169:in `loadclass'
from /usr/lib/ruby/site_ruby/1.8/mcollective/config.rb:127:in `loadconfig'
from /usr/sbin/mcollectived:29
actionjack / gist:2973543
Created Jun 22, 2012
updating foreman host's environment with the rest api
View gist:2973543
command line used: (need to change username and password)
curl -k -u [USERNAME]:[PASSWORD] -X PUT -H "Content-Type:application/json" -H "Accept:application/json" -d '{"host":{"subnet_id":null,"serial":null,"puppetproxy_id":null,"name":"","managed":null,"last_report":null,"comment":"","architecture_id":1,"created_at":"2011-10-10T17:46:30Z","sp_mac":"","puppetmaster_name":"","image_file":null,"updated_at":"2012-02-29T14:41:29Z","sp_name":"","mac":"00:16:3e:16:69:b8","installed_at":null,"domain_id":2,"use_image":null,"root_pass":"xybxa6JUkz63w","owner_id":2,"medium_id":null,"id":896,"hostgroup_id":null,"enabled":true,"build":false,"ptable_id":null,"sp_subnet_id":null,"puppet_status":0,"last_freshcheck":null,"ip":"127.0.01","environment_id":2,"source_file_id":null,"model_id":1,"environment":{"environment":{"name":"lab2","id":2}},"sp_ip":"","disk":null,"owner_type":"User","operatingsystem_id":5,"last_compile":"2011-08-21T04:02:27Z"}}' http://localhost:3000/hosts/citta
actionjack / logstash RPM spec
Created Aug 31, 2012 — forked from slojo404/logstash RPM spec
logstash monolithic init script and spec file for CentOS / RedHat
View logstash RPM spec
Name: logstash
Version: 1.1.0
Release: 1%{?dist}
Summary: logstash is a tool for managing events and logs
Group: System/Logging
License: ASL 2.0
Source1: logstash
actionjack /
Created Sep 20, 2012 — forked from valotas/
Tomcat init.d script
# tomcat7 This shell script takes care of starting and stopping Tomcat
# chkconfig: - 80 20
# Provides: tomcat7
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
actionjack / gist:4059791
Created Nov 12, 2012 — forked from faxm0dem/gist:4059786
collectd unquote filter
View gist:4059791
<Chain PreCache>
<Rule unquote>
<Match regex>
Plugin "^GenericJMX$"
<Target replace>
PluginInstance "\"" ""
View validate.rb
require 'rubygems'
require 'fog'
require 'yaml'
config = YAML::load_file(File.dirname(__FILE__) + '/config.yml')
cf =
:aws_access_key_id => config['key'],
:aws_secret_access_key => config['secret']

A Continuous Packaging Pipeline

A list of tools mentioned in my Ignite talk from Devopsdays Rome 2012 on a continuous packaging pipeline, with links and short description for each tool.

The talk slides are at; a longer blog post will be written soon.


Available at or with gem install vendorificator

Include third party modules in your git repo, using pristine branches to sanely maintain local changes, upgrades, and merges.