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
root@chef-client:~# chef-solo -c ~/solo.rb -j ~/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz | |
[Wed, 03 Jun 2009 17:47:32 -0700] INFO: Starting Chef Solo Run | |
[Wed, 03 Jun 2009 17:47:36 -0700] INFO: Created group[chef] | |
[Wed, 03 Jun 2009 17:47:36 -0700] INFO: Created user[chef] | |
[Wed, 03 Jun 2009 17:47:36 -0700] INFO: Creating directory[/etc/chef] at /etc/chef | |
[Wed, 03 Jun 2009 17:47:36 -0700] INFO: Setting owner to 8000 for directory[/etc/chef] | |
[Wed, 03 Jun 2009 17:47:36 -0700] INFO: Setting group to 8000 for directory[/etc/chef] | |
[Wed, 03 Jun 2009 17:47:36 -0700] INFO: Setting mode to 775 for directory[/etc/chef] | |
[Wed, 03 Jun 2009 17:47:36 -0700] INFO: Creating directory[/srv/chef] at /srv/chef | |
[Wed, 03 Jun 2009 17:47:36 -0700] INFO: Setting owner to 8000 for directory[/srv/chef] |
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
root@chef-client:~# chef-solo -c ~/solo.rb -j ~/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz | |
[Wed, 03 Jun 2009 18:06:36 -0700] INFO: Starting Chef Solo Run | |
[Wed, 03 Jun 2009 18:06:39 -0700] INFO: Created group[chef] | |
[Wed, 03 Jun 2009 18:06:39 -0700] INFO: Created user[chef] | |
[Wed, 03 Jun 2009 18:06:39 -0700] INFO: Creating directory[/etc/chef] at /etc/chef | |
[Wed, 03 Jun 2009 18:06:39 -0700] INFO: Setting owner to 8000 for directory[/etc/chef] | |
[Wed, 03 Jun 2009 18:06:39 -0700] INFO: Setting group to 8000 for directory[/etc/chef] | |
[Wed, 03 Jun 2009 18:06:39 -0700] INFO: Setting mode to 775 for directory[/etc/chef] | |
[Wed, 03 Jun 2009 18:06:39 -0700] INFO: Creating directory[/srv/chef] at /srv/chef | |
[Wed, 03 Jun 2009 18:06:39 -0700] INFO: Setting owner to 8000 for directory[/srv/chef] |
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
template "/tmp/deep_thought.txt" do | |
source "deep_thought.txt.erb" | |
variables :deep_thought => node[:deep_thought] | |
action :create | |
end |
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
%w{ | |
package1 | |
package2 | |
package3 | |
package4 | |
}.each do |name| | |
package name do | |
action :install | |
end | |
end |
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
# Create groups and users | |
# Groups | |
group "oinstall" do | |
gid "500" | |
end | |
group "dba" do | |
gid "501" | |
end |
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
[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' |
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
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 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 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 |
OlderNewer