X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/43579f6444232b183805cfba96dcac36332c81f2..c784b570ae5193b222866d410ddd24b90547bed7:/cookbooks/snmpd/templates/default/snmpd.conf.erb?ds=sidebyside diff --git a/cookbooks/snmpd/templates/default/snmpd.conf.erb b/cookbooks/snmpd/templates/default/snmpd.conf.erb index acddef736..3b79ad1f8 100644 --- a/cookbooks/snmpd/templates/default/snmpd.conf.erb +++ b/cookbooks/snmpd/templates/default/snmpd.conf.erb @@ -1,5 +1,10 @@ # 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] %> +<% end -%>