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
default[:application][:repository][:username] = "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
[Thu, 24 Sep 2009 16:42:29 +0000] DEBUG: Loading attributes from /tmp/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb | |
/usr/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/node/attribute.rb:387:in `method_missing': Attribute domain is not defined! (ArgumentError) | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/node.rb:238:in `send' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/node.rb:238:in `method_missing' | |
from /tmp/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb:48:in `from_file' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/cookbook.rb:73:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/cookbook.rb:71:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/cookbook.rb:71:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/compile.rb:68:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/cookbook_loader.rb:117:in `each' |
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 'chef' | |
require 'mixlib/config' | |
class MyChef | |
class Servers | |
def initialize | |
# use a path to a chef config file. I used /etc/client/chef.rb as a | |
# starting point. Add user and password lines to this config file. | |
# note that the user MUST have admin privileges - this means that the first | |
# time you run this, if the user doesn't exist and have admin already, it will |
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
{"init terminating in do_boot",{undef,[{crypto,start,[]},{erl_eval,do_apply,5},{init,start_it,1},{init,start_em,1}]}} | |
Crash dump was written to: erl_crash.dump | |
init terminating in do_boot () |
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@ecs3 ~]# irb | |
irb(main):001:0> require 'rubygems'; require 'chef'; | |
irb(main):002:0* Chef::Mixin::Command.run_command(:command => "/etc/init.d/couchdb start") | |
[Fri, 23 Oct 2009 15:02:38 +0000] DEBUG: Executing /etc/init.d/couchdb start | |
IRB::Abort: abort then interrupt!! | |
from /usr/lib/ruby/1.8/irb.rb:81:in `irb_abort' | |
from /usr/lib/ruby/1.8/irb.rb:247:in `signal_handle' | |
from /usr/lib/ruby/1.8/irb.rb:66:in `start' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/command.rb:342:in `call' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/command.rb:342:in `select' |
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
[Mon, 26 Oct 2009 15:33:07 GMT] [info] [<0.124.0>] 127.0.0.1 - - 'GET' / 200 | |
[Mon, 26 Oct 2009 15:33:07 GMT] [error] [<0.136.0>] OS Process Error :: {os_process_error,{exit_status,127}} | |
[Mon, 26 Oct 2009 15:33:07 GMT] [error] [<0.133.0>] ** Generic server <0.133.0> terminating | |
** Last message in was {'EXIT',<0.136.0>, | |
{{nocatch,{os_process_error,{exit_status,127}}}, | |
[{couch_os_process,prompt,2}, | |
{couch_query_servers,'-start_doc_map/2-fun-0-',2}, | |
{lists,foreach,2}, |
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: Mon Oct 26 17:20:20 +0000 2009 | |
merb : worker (port 4000) ~ Routed to: {"action"=>"index", "controller"=>"chef_server_slice/nodes"} | |
merb : worker (port 4000) ~ Params: {"action"=>"index", "controller"=>"chef_server_slice/nodes"} | |
~ Sending HTTP Request via GET to / | |
~ Sending HTTP Request via GET to /chef/_design/nodes/_view/all_id | |
merb : worker (port 4000) ~ 500 "Internal Server Error" - (Net::HTTPFatalError) | |
/usr/lib/ruby/1.8/net/http.rb:2097:in `error!' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/rest.rb:233:in `run_request' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/rest.rb:85:in `get_rest' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/couchdb.rb:124:in `list' |
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
[Mon, 26 Oct 2009 18:13:35 GMT] [error] [<0.254.0>] OS Process Error :: {os_process_error,{exit_status,127}} | |
[Mon, 26 Oct 2009 18:13:35 GMT] [error] [emulator] Error in process <0.254.0> with exit value: {{nocatch,{os_process_error,{exit_status,127}}},[{couch_os_process,prompt,2},{couch_query_servers,'-start_doc_map/2-fun-0-',2},{lists,foreach,2},{couch_query_servers,start_doc_map,2},{couch_view_updater,view_compute... | |
[Mon, 26 Oct 2009 18:13:35 GMT] [error] [<0.250.0>] ** Generic server <0.250.0> terminating | |
** Last message in was {'EXIT',<0.254.0>, | |
{{nocatch,{os_process_error,{exit_status,127}}}, | |
[{couch_os_process,prompt,2}, |
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
index 95b48a0..7dd897c 100644 | |
--- a/chef/lib/chef/provider/subversion.rb | |
+++ b/chef/lib/chef/provider/subversion.rb | |
@@ -122,7 +122,7 @@ class Chef | |
# YAML doesn't appreciate input like "svn: '/tmp/deploydir' is not a working copy\n" | |
return nil | |
end | |
- raise "tried to run `#{command}' and got unexpected result #{result.inspect}" unless repo_attrs.kind_of?(Hash) | |
+ raise "Attempted to parse SVN info but could not. SVN info was:\n#{svn_info}" unless repo_attrs.kind_of?(Hash) | |
rev = (repo_attrs['Last Changed Rev'] || repo_attrs['Revision']).to_s |
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
default[:networking][:static_hosts] = {} | |
# read the existing hosts file on first run and preserve any entries found there | |
f = File.new("/etc/hosts") | |
static_hosts = {} | |
f.each_line do |line| | |
# ... | |
static_hosts[ip] = hostname | |
# ... | |
end |
OlderNewer