This file contains hidden or 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
| template "/tmp/foo" do | |
| source "foo.erb" | |
| variables({ | |
| :recipe_name => self.recipe_name, | |
| :cookbook_name => self.cookbook_name | |
| }) | |
| end |
This file contains hidden or 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
| [root@cct ~]# chef-client -j base.json | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/cookbook_loader.rb:111:in `[]': Cannot find a cookbook named quick_start; did you forget to add metadata to a cookbook? (http://wiki.opscode.com/display/chef/Metadata) (ArgumentError) | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/compile.rb:121:in `load_recipes' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/compile.rb:112:in `each' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/compile.rb:112:in `load_recipes' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:369:in `converge' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:81:in `run' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:164:in `run_application' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `loop' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `run_applic |
This file contains hidden or 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: Tue Jun 16 05:41:29 -0700 2009 | |
| ~ Routed to: {"format"=>nil, "action"=>"show", "id"=>"cct_localdomain", "controller"=>"chef_server_slice/openid_register"} | |
| ~ Params: {"format"=>nil, "action"=>"show", "id"=>"cct_localdomain", "controller"=>"chef_server_slice/openid_register"} | |
| ~ Sending HTTP Request via GET to /chef/openid_registration_cct_localdomain | |
| ~ #<Chef::OpenIDRegistration:0x2aaaac1b7db8 @couchdb_rev="2-1115954838", @name="cct_localdomain", @validated=true, @password="e971878ba07102281210d6ed01405ea90a447b25", @couchdb=#<Chef::CouchDB:0x2aaaac1b7d68 @rest=#<Chef::REST:0x2aaaac1b7d18 @url="http://localhost:5984", @cookies={}>>, @salt="Tue Jun 16 04:09:15 -0700 2009LwlH8WBtwBvZhmtHfp02PihwgRY74d", @admin=false> | |
| ~ {:dispatch_time=>0.013226, :before_filters_time=>0.000211, :action_time=>0.010409, :after_filters_time=>2.6e-05} | |
| ~ | |
| ~ Started request handling: Tue Jun 16 05:41:29 -0700 2009 |
This file contains hidden or 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
| [Tue, 16 Jun 2009 08:56:29 GMT] [info] [<0.59.0>] 127.0.0.1 - - 'GET' /chef/_design%2Fnodes 500 | |
| [Tue, 16 Jun 2009 08:56:29 GMT] [error] [<0.69.0>] {error_report,<0.21.0>, | |
| {<0.69.0>,crash_report, | |
| [[{pid,<0.69.0>}, | |
| {registered_name,[]}, | |
| {error_info, | |
| {exit, | |
| {bad_return_value, |
This file contains hidden or 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
| [root@cs couchdb]# tail couch.log | |
| {links,[<0.41.0>,<0.1202.0>]}, | |
| {dictionary,[]}, | |
| {trap_exit,false}, | |
| {status,runnable}, | |
| {heap_size,233}, | |
| {stack_size,14}, | |
| {reductions,46}]}]]}} | |
| [Tue, 16 Jun 2009 09:34:34 GMT] [info] [<0.1198.0>] 127.0.0.1 - - 'GET' /chef/_design/nodes/_view/all_id 500 |
This file contains hidden or 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
| [root@cs chef]# more server.log | |
| ~ Failed loading ChefServerSlice (500 "Internal Server Error") | |
| ~ Parent pid: 3762 | |
| ~ Compiling routes... | |
| ~ Could not find resource model Node | |
| ~ Could not find resource model Role | |
| ~ Could not find resource model Search | |
| ~ Could not find resource model Cookbook | |
| ~ Could not find resource model Registration | |
| ~ Could not find resource model Registration |
This file contains hidden or 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
| 192.168.83.1 - - [16/Jun/2009:01:02:03 -0700] "GET /cblr/svc/op/ks/system/cct HTTP/1.1" 200 2035 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11" | |
| 192.168.83.1 - - [16/Jun/2009:01:02:56 -0700] "GET /cblr/svc/op/ks/system/cct HTTP/1.0" 200 5484 "-" "Wget/1.11.4" | |
| 192.168.83.1 - - [16/Jun/2009:01:04:20 -0700] "GET /cblr/svc/op/ks/system/cct HTTP/1.1" 200 2035 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/525.28.3 (KHTML, like Gecko) Version/3.2.3 Safari/525.28.3" | |
| 192.168.83.1 - - [16/Jun/2009:01:09:26 -0700] "GET /cblr/svc/op/ks/system/cct HTTP/1.1" 200 5484 "-" "curl/7.19.5 (i386-apple-darwin9.7.0) libcurl/7.19.5 zlib/1.2.3" |
This file contains hidden or 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
| echo '$http_server cs.localdomain cs' >> /etc/hosts | |
| wget http://$http_server/build-files/chef/solo.rb -O /tmp/solo.rb | |
| wget http://$http_server/build-files/chef/chef-client.json -O /tmp/chef.json | |
| chef-solo -c /tmp/solo.rb -j /tmp/chef.json -r http://$http_server/build-files/chef/bootstrap-0.7.4.tar.gz |
This file contains hidden or 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
| [root@localhost ~]# chef-client -l debug | |
| /usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 400 "Bad Request" (Net::HTTPServerException) | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:232:in `run_request' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:95:in `post_rest' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:223:in `authenticate' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:74:in `run' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:164:in `run_application' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `loop' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `run_application' | |
| from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application.rb:57:in `run' |