]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/resources/plugin.rb
hardware: do not fail if node[:hardware][:pci] is undefined (tests)
[chef.git] / cookbooks / munin / resources / plugin.rb
index dede3cb534360b59b55b0650179ed77a1b0f8e36..10c149436b7c79d96b59a738eeb39e1d22c51326 100644 (file)
 # limitations under the License.
 #
 
+unified_mode true
+
 default_action :create
 
-property :plugin, :kind_of => String, :name_attribute => true
+property :plugin, :kind_of => String, :name_property => true
 property :target, :kind_of => String
 property :conf, :kind_of => String
 property :conf_cookbook, :kind_of => String
@@ -81,5 +83,5 @@ action_class do
 end
 
 def after_created
-  notifies :restart, "service[munin-node]" if restart_munin && node[:recipes].include?("munin")
+  notifies :restart, "service[munin-node]" if restart_munin
 end