]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/snmpd/templates/default/snmpd.conf.erb
Merge branch 'patch-2' of https://github.com/Tigerfell/chef into pr257
[chef.git] / cookbooks / snmpd / templates / default / snmpd.conf.erb
index acddef7368dbbedb8d36b03ab84d3e2d9c3f6556..3b79ad1f8a65e4b73fd9530248483573e1fe399c 100644 (file)
@@ -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 -%>