Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Error
- [Tue, 26 Jul 2011 12:55:43 +1200] FATAL: Chef::Exceptions::ResourceNotFound: Resource template[/etc/default/xendomains] is configured to notify resource resource[grub] with action update, but resource[grub] cannot be found in the resource collection. template[/etc/default/xendomains] is defined in /var/chef/cookbooks/xen/recipes/xen4.rb:10:in `from_file'
- ## test/recipes/default.rb
- %w{xendomains grub}.each do |cfg|
- template "/etc/default/#{cfg}" do
- source "#{cfg}.erb"
- owner "root"
- group "root"
- mode "0744"
- notifies :update, "resource[grub]"
- end
- end
- ## grub/provider/default.rb
- action :update do
- execute "update grub" do
- command "/usr/sbin/update-grub"
- end
- end
- ## grub/resource/default.rb
- actions :update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement