X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..6ceead753013521ceffc22bea1cd1bcf5b5ec8d6:/cookbooks/snmpd/recipes/default.rb diff --git a/cookbooks/snmpd/recipes/default.rb b/cookbooks/snmpd/recipes/default.rb index 98e4c400b..26ae86b78 100644 --- a/cookbooks/snmpd/recipes/default.rb +++ b/cookbooks/snmpd/recipes/default.rb @@ -23,11 +23,6 @@ communities = data_bag_item("snmpd", "communities") package "snmpd" -service "snmpd" do - action [:enable, :start] - supports :status => true, :restart => true -end - template "/etc/snmp/snmpd.conf" do source "snmpd.conf.erb" owner "root" @@ -37,6 +32,11 @@ template "/etc/snmp/snmpd.conf" do notifies :restart, "service[snmpd]" end +service "snmpd" do + action [:enable, :start] + supports :status => true, :restart => true +end + if node[:snmpd][:clients] node[:snmpd][:clients].each do |address| firewall_rule "accept-snmp" do