Skip to content

Instantly share code, notes, and snippets.

View kcbraunschweig's full-sized avatar

KC Braunschweig kcbraunschweig

View GitHub Profile
@kcbraunschweig
kcbraunschweig / chef-api-ha
Created July 22, 2011 01:41
chef and unicorn and nginx
Just to get you started.
https://github.com/blog/517-unicorn
http://unicorn.bogomips.org/index.html
http://wiki.nginx.org/Configuration
http://blog.tomkersten.com/2010/11/14/nginx-unicorn-rvm-server-setup.html
http://nginx.org/en/docs/http/configuring_https_servers.html
http://nginx.org/en/docs/http/request_processing.html
https://github.com/merb/merb/wiki/HOWTO-Use-Unicorn
@kcbraunschweig
kcbraunschweig / with debug output
Created June 27, 2011 22:34
shef solo stacktrace
[root@chef-test1 foo]# shef -s -c /etc/chef/solo.rb -j /root/chef.json
loading configuration: /etc/chef/solo.rb
Session type: solo
Loading.[Mon, 27 Jun 2011 15:32:34 -0700] INFO: Run List is []
[Mon, 27 Jun 2011 15:32:34 -0700] INFO: Run List expands to []
.epic fail!
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/shef/shef_session.rb:167:in `rebuild_context': undefined local variable or method `run_status' for #<Shef::SoloSession:0x2b70a96e9b38> (NameError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/shef/shef_session.rb:54:in `reset!'
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/shef/shef_session.rb:96:in `loading'
@kcbraunschweig
kcbraunschweig / loop_example.rb
Created May 27, 2011 22:08
resource loop example
#this is irritating:
cookbook_file "/usr/bin/foo" do
owner "me"
group "me"
mode "0644"
action :create
end
cookbook_file "/usr/bin/bar" do
owner "me"
@kcbraunschweig
kcbraunschweig / gist:971066
Created May 13, 2011 18:43
aegis repo from rpm
[root@i-13-52-VM tmp]# rpm -qa | grep aegis
aegisco-rhel-1-1
[root@i-13-52-VM tmp]# cat /etc/yum.repos.d/aegisco.repo
[aegisco]
name=AegisCo rhel$releasever repo - $basearch
baseurl=http://rpm.aegisco.com/aegisco/rhel/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-aegisco