Skip to content

Instantly share code, notes, and snippets.

@micgo
micgo / base.rb
Last active August 29, 2015 13:59
Chef - Intermediate Topics
name "base"
description "Base Server Role"
run_list "recipe[chef-client::delete_validation]", "recipe[chef-client]", "recipe[ntp]", "recipe[motd]", "recipe[users]", "recipe[push-jobs]"
default_attributes(
"chef_client" => {
"config" => {
"ssl_verify_mode" => ":verify_peer"
}
},
"push_jobs" => {
@hassenius
hassenius / get_package_options.rb
Last active September 2, 2016 20:52
Package Options
################################################################################
# get_package_options.rb
# ©Copyright IBM Corporation 2014.
#
# LICENSE: MIT (http://opensource.org/licenses/MIT)
################################################################################
require 'rubygems'
require 'softlayer_api'
require 'optparse'
require 'pp'