Skip to content

Instantly share code, notes, and snippets.

View nickethier's full-sized avatar

Nick Ethier nickethier

View GitHub Profile
@nickethier
nickethier / server.rb
Created February 2, 2012 17:33
dm-chef-adapter CI stuff
log_level          :info
log_location       STDOUT
ssl_verify_mode    :verify_none
chef_server_url    "http://localhost:4000"
 
signing_ca_path    "/var/chef/ca"
couchdb_database   'chef'
 
cookbook_path      [ "/var/chef/cookbooks", "/var/chef/site-cookbooks" ]
 
@nickethier
nickethier / build.sh
Created October 17, 2011 17:40
Logstash + Jenkins / FPM
#!/usr/bin/env bash
ruby_version="1.9.2-p180"
rpm_version="0.2"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
#make sure we have rvm
no_rvm=$(which rvm | grep 'no rvm')
if [ "$no_rvm" ] ; then
echo "install rvm"
@nickethier
nickethier / Gemfile
Created October 14, 2011 05:03
Logstash Gemspec
source :rubygems
gem "logstash", :git => "git://github.com/logstash/logstash.git"
@nickethier
nickethier / exec.conf
Created August 4, 2011 18:53
Example Logstash config with exec input
input {
exec {
type => 'proc-stat'
exec => 'cat /proc/stat'
period => 5
}
exec {
type => 'free'
exec => 'free'
period => 8