Created
October 7, 2009 23:09
-
-
Save macros/204538 to your computer and use it in GitHub Desktop.
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
[Wed, 07 Oct 2009 17:52:06 +0000] ERROR: service[openntpd] (/var/chef/cache/cookbooks/ntp/recipes/default.rb line 28) had an error: | |
closed stream | |
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:60:in `close'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:60:in `load_current_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/command.rb:371:in `[]'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/command.rb:371:in `popen4'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:59:in `load_current_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/debian.rb:28:in `load_current_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:55:in `build_provider'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:60:in `run_action'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:111:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:110:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:110:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource_collection.rb:84:in `execute_each_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/from_file.rb:30:in `each_with_index'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource_collection.rb:82:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource_collection.rb:82:in `each_with_index'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource_collection.rb:82:in `execute_each_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:88:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/client.rb:407:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/client.rb:89:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/application/client.rb:186:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/application/client.rb:178:in `loop'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/application/client.rb:178:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/application.rb:57:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/bin/chef-client:26/usr/bin/chef-client:19:in `load'/usr/bin/chef-client:19 | |
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:60:in `close': closed stream (IOError) | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:60:in `load_current_resource' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/command.rb:371:in `[]' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/command.rb:371:in `popen4' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:59:in `load_current_resource' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/debian.rb:28:in `load_current_resource' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:55:in `build_provider' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:60:in `run_action' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:111:in `converge' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:110:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:110:in `converge' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource_collection.rb:84:in `execute_each_resource' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/from_file.rb:30:in `each_with_index' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource_collection.rb:82:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource_collection.rb:82:in `each_with_index' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/resource_collection.rb:82:in `execute_each_resource' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/runner.rb:88:in `converge' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/client.rb:407:in `converge' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/client.rb:89:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/application/client.rb:186:in `run_application' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/application/client.rb:178:in `loop' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/application/client.rb:178:in `run_application' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/application.rb:57:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.12/bin/chef-client:26 | |
from /usr/bin/chef-client:19:in `load' | |
from /usr/bin/chef-client:19 |
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
package "openntpd" | |
if (node[:virtualization][:role] == "guest") | |
sysctl "xen.independent_wallclock" do | |
value 1 | |
end | |
end | |
service "openntpd" do | |
action [ :enable, :start ] | |
pattern "/usr/sbin/ntpd" | |
end | |
remote_file "/etc/default/openntpd" do | |
source "openntpd" | |
mode 0644 | |
owner "root" | |
group "root" | |
notifies :restart, resources(:service => "openntpd") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment