This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merb : worker (port 4000) ~ Started request handling: Thu Oct 29 23:56:22 +0000 2009 | |
merb : worker (port 4000) ~ Routed to: {"format"=>nil, "action"=>"show", "id"=>"centos53_localdomain", "controller"=>"chef_server_slice/openid_register"} | |
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"centos53_localdomain", "controller"=>"chef_server_slice/openid_register"} | |
~ Sending HTTP Request via GET to /chef/openid_registration_centos53_localdomain | |
merb : worker (port 4000) ~ Cannot load node registration for centos53.localdomain - (Merb::ControllerExceptions::NotFound) | |
/Users/id/.gem/ruby/1.8/gems/chef-server-slice-0.7.14/app/controllers/openid_register.rb:43:in `show' | |
/Users/id/.gem/ruby/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in `send' | |
/Users/id/.gem/ruby/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in `_call_action' | |
/Users/id/.gem/ruby/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:289:in ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 9 workers and 1 master | |
worker_processes 9 | |
# Load rails+github.git into the master before forking workers | |
# for super-fast worker spawn times | |
preload_app true | |
# Restart any workers that haven't responded in 30 seconds | |
timeout 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'merb-core' | |
require 'chef' | |
Chef::Config.from_file(File.join("/etc", "chef", "server.rb")) | |
Merb::Config.setup(:merb_root => File.expand_path(File.dirname(__FILE__)), | |
:environment => ENV['RACK_ENV'], | |
:fork_for_class_load => false, | |
:init_file => File.dirname(__FILE__) / "config/init.rb") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'merb-core' | |
require 'chef' | |
Chef::Config.from_file('/etc/chef/server.rb') | |
require 'chef/nanite' | |
require 'uuidtools' | |
Chef::Config[:nanite_identity] = "chef-#{UUIDTools::UUID.random_create.to_s}" | |
Chef::Nanite.in_event { Chef::Log.info "Nanite Booting..." } | |
time = 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. follow instructions at | |
# http://github.com/dreamcat4/site-cookbooks | |
# 2. | |
git remote add -f kallistec git://github.com/danielsdeleo/cookbooks.git | |
# 3. Assuming you haven't checked these out yet: | |
git checkout kallistec/08boot -- bootstrap | |
git checkout kallistec/08boot -- nanite | |
git checkout kallistec/08boot -- rabbitmq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
janitors-Mac-mini:chef-server-webui-0.8.0 id$ cd /etc/chef/server-webui/ | |
janitors-Mac-mini:server-webui id$ sudo unicorn -c unicorn.config | |
I, [2009-11-24T18:01:32.280483 #65602] INFO -- : listening on addr=0.0.0.0:4900 fd=3 | |
I, [2009-11-24T18:01:32.431953 #65602] INFO -- : worker=0 spawning... | |
I, [2009-11-24T18:01:32.434465 #65602] INFO -- : master process ready | |
I, [2009-11-24T18:01:32.435669 #65608] INFO -- : worker=0 spawned pid=65608 | |
I, [2009-11-24T18:01:32.436252 #65608] INFO -- : Refreshing Gem list | |
Loading init file from ./config/init.rb | |
/Users/id/.gem/ruby/1.8/gems/chef-0.8.0/lib/chef/config.rb:106: warning: Insecure world writable dir /Volumes in PATH, mode 040777 | |
~ Loaded slice 'ChefServerWebui' ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ Started request handling: Sat Nov 28 11:53:15 +0000 2009 | |
~ Routed to: {"action"=>"index", "controller"=>"chef_server_api/clients"} | |
~ Params: {"action"=>"index", "controller"=>"chef_server_api/clients"} | |
[Sat, 28 Nov 2009 11:53:15 +0000] DEBUG: Headers in authenticate_every: {:version=>"HTTP/1.1", :host=>"localhost:4000", :authorization=>"eYCZVcfbhbdhHo2elXNeGaDP5yVTfQC+/L/Yl8ZdtEKjbUvE/x8c/QkydWmz\n\tL9Rh82Zksh3PKRfYAs/Ns+92HagxcS88kR2vjYX6Rv4oypzzaAZEmMxKE3JA\n\tK0TxSiUkG3PpPvrgWkkjf0CP+SqpvzrxibZr5Rr5s8zlL6u6fLT0WO0FHOXS\n\tC65iTAEVR+EFP2klafpnTcA1/0DldmerkDY/I5o9WVGy3NbAPFPKizg63YtZ\n\t1lgcfYTaPhr7whDrfDBeHR7qPdLlcVUo7kj1vB+sSi5PTwtXstWxOKHOBq3g\n\toSONodqNu5wj0E+D1QiqVAYyfqJh5VQKLhzzTZtXTQ==", :x_ops_userid=>"chef-webui", :connection=>"close", :x_ops_content_hash=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", :x_ops_sign=>"version=1.0", :x_ops_timestamp=>"2009-11-28T11:53:15Z", :accept=>"application/json"} | |
[Sat, 28 Nov 2009 11:53:15 +0000] INFO: Authenticating client chef-webui | |
[Sat, 28 Nov 2009 11:53:15 +0000] DEB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
janitors-Mac-mini:~ id$ rvm list | |
=> system ( ruby -v # => ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9] ) | |
janitors-Mac-mini:~ id$ rvm install 1.9.1 | |
<i> Installing Ruby from source to: /Users/id/.rvm/ruby-1.9.1-p243 </i> | |
<i> Downloading ruby-1.9.1-p243, this may take a while depending on your connection... </i> | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 8831k 100 8831k 0 0 162k 0 0:00:54 0:00:54 --:--:-- 75728 | |
<i> Extracting ruby-1.9.1-p243 ... </i> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Retrieve an existing user's password hash | |
# Usage: get_salted_sha1 <username> | |
get get_salted_sha1() | |
{ | |
user=$1 | |
guid=`dscl . -read /Users/$user GeneratedUID | sed 's/GeneratedUID: //'` | |
hash_file=/var/db/shadow/hash/$guid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ec2 ami-1515f67c | |
sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb | |
sudo gem sources -a http://gems.opscode.com | |
sudo gem sources -a http://gemcutter.org # for nanite | |
sudo gem install cucumber merb-core nanite jeweler uuidtools json --no-ri --no-rdoc | |
mkdir ~/src | |
cd ~/src | |
git clone git://github.com/opscode/chef.git |