X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/43579f6444232b183805cfba96dcac36332c81f2..080e74059ce5a3ab4238d7f21cf81b70aa5381fa:/cookbooks/snmpd/recipes/default.rb diff --git a/cookbooks/snmpd/recipes/default.rb b/cookbooks/snmpd/recipes/default.rb index c67466785..ecc8170cd 100644 --- a/cookbooks/snmpd/recipes/default.rb +++ b/cookbooks/snmpd/recipes/default.rb @@ -24,7 +24,7 @@ communities = data_bag_item("snmpd", "communities") package "snmpd" service "snmpd" do - action [ :enable, :start ] + action [:enable, :start] supports :status => true, :restart => true end @@ -34,7 +34,7 @@ template "/etc/snmp/snmpd.conf" do group "root" mode 0600 variables :communities => communities - notifies :restart, resources(:service => "snmpd") + notifies :restart, "service[snmpd]" end node[:snmpd][:clients].each do |address|