Public Gists by jtimberman

Gravatar
Thu Nov 19 10:43:24 -0800 2009
1
2
3
#
# Cookbook Name:: apt_packages_ccu
# Recipe:: default
gist: 236393 Get the run_list
Gravatar
Mon Nov 16 14:49:03 -0800 2009
1
2
3
# returns [ recipes, default_attrs, override_attrs ]
expando = run_list.expand('server')
# recipes is just an array
Gravatar
Fri Nov 13 14:55:52 -0800 2009
1
2
3
libarch = case node[:kernel][:machine]
  when 'x86_64' then 'lib64'
  else 'lib'
gist: 233169 Example of chef 0.8.0 searc...
Gravatar
Thu Nov 12 10:54:38 -0800 2009
1
2
3
<%- @app_servers.each do |app| %>
server <%= app['hostname'] %> <%= app['ipaddress'] %>:80
<%- end %>
gist: 229151 Removing whitespace on save
Gravatar
Sat Nov 07 23:11:37 -0800 2009
1
2
3
### Vim
 
`autocmd BufWritePre * :%s/\s\+$//e`
gist: 223203 shell script testing with c...
Gravatar
Sat Oct 31 12:37:31 -0700 2009
1
bin/cucumber --require features/ features/example-script.feature
gist: 220912 magic ec2 metadata config
Gravatar
Wed Oct 28 15:14:18 -0700 2009
1
2
3
# Chef Client Config File
 
require 'ohai'
Gravatar
Tue Oct 27 12:03:37 -0700 2009
1
2
3
{
  "server_roles": [
    "monkeynews"
Gravatar
Thu Oct 22 09:41:24 -0700 2009
1
2
3
task :monkeypants do
  chefistrano.recipe do
    service "apache2" do
Gravatar
Wed Oct 21 22:16:44 -0700 2009
1
2
3
# Joshua Timberman <joshua@housepub.org>
# My .zshrc, modified from:
#
Gravatar
Tue Oct 20 08:11:58 -0700 2009
1
2
3
to cuke chef's deploy features, you need this:
 
* htmlentities
gist: 213131 merb config.ru for unicorn
Gravatar
Sun Oct 18 23:04:53 -0700 2009

      
Gravatar
Mon Oct 12 11:34:31 -0700 2009

      
Gravatar
Mon Oct 12 11:34:27 -0700 2009

      
Gravatar
Sat Oct 10 06:15:33 -0700 2009

      
Gravatar
Sat Oct 10 06:07:41 -0700 2009

      
gist: 203680 chef server with thin adapt...
Gravatar
Tue Oct 06 19:46:36 -0700 2009
1
2
3
#
# Author:: Joshua Timberman <joshua@opscode.com>
# Cookbook Name:: chef
Gravatar
Fri Oct 02 22:54:18 -0700 2009

      
Gravatar
Thu Oct 01 07:07:02 -0700 2009

      
Gravatar
Wed Sep 30 08:25:13 -0700 2009
1
2
3
$ curl http://localhost:5984/chef/node_virt1test_int_example_com?rev=2243089003 -v
* About to connect() to localhost port 5984 (#0)
* Trying ::1... Unknown error 111