Skip to content

Instantly share code, notes, and snippets.

View charlesjohnson's full-sized avatar

Chip Johnson charlesjohnson

View GitHub Profile
@charlesjohnson
charlesjohnson / Ubuntu Vagrantfile
Created December 22, 2012 09:16
Example Vagrantfiles
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# The path to the Berksfile to use with Vagrant Berkshelf
# config.berkshelf.berksfile_path = "./Berksfile"
# An array of symbols representing groups of cookbook described in the Vagrantfile
# to skip installing and copying to Vagrant's shelf.
@charlesjohnson
charlesjohnson / gist:4033583
Created November 7, 2012 18:50
Conditional notification example
template "/etc/bind/named.conf.local" do
source "named.conf.local.erb"
owner "root"
group "bind"
mode 00644
variables({
:role => node["bind"]["role"],
:masters => node["bind"]["masters"],
:directory => node["bind"]["zone_dir"]
})
@charlesjohnson
charlesjohnson / default_attributes.rb
Created October 24, 2012 03:09
Ark library usage example
default['elasticsearch']['version'] = "0.19.6"
default['elasticsearch']['checksum'] = 'f0ec550fb86c4bc8f08afb15de4e197e85f9fcfd352fbb7eb49aaff98f7731dd'
default['elasticsearch']['url'] = "http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-#{node['elasticsearch']['version']}.tar.gz"
default['elasticsearch']['home_path'] = "/usr/lib"
default['elasticsearch']['home_dir'] = "#{node['elasticsearch']['home_path']}/elasticsearch"