X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f7e802a51133ff2331798a7b54c0f0670ec43ce1..f7628dac50cd43cd44bb4f7e5c343fe990b5af3f:/cookbooks/snmpd/templates/default/snmpd.conf.erb diff --git a/cookbooks/snmpd/templates/default/snmpd.conf.erb b/cookbooks/snmpd/templates/default/snmpd.conf.erb index 9239fbd30..3b79ad1f8 100644 --- a/cookbooks/snmpd/templates/default/snmpd.conf.erb +++ b/cookbooks/snmpd/templates/default/snmpd.conf.erb @@ -1,6 +1,9 @@ # DO NOT EDIT - This file is being maintained by Chef -rocommunity <%= @communities[node[:snmpd][:community]] %> +<% Array(@communities[node[:snmpd][:community]]).each do |community| -%> +rocommunity <%= community %> +rocommunity6 <%= community %> +<% end -%> syslocation <%= node[:snmpd][:location] %> <% if node[:snmpd][:contact] -%> syscontact <%= node[:snmpd][:contact] %>