]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/snmpd/templates/default/snmpd.conf.erb
Update SNMP configuration for lyonix
[chef.git] / cookbooks / snmpd / templates / default / snmpd.conf.erb
index 9239fbd309aaa7a90836264e51edd436578b0521..e47f2e03fd432cc3ab023650ff1e3d3b391f380e 100644 (file)
@@ -1,6 +1,9 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
-rocommunity     <%= @communities[node[:snmpd][:community]] %>
+<% @communities[node[:snmpd][:community]].each do |community| -%>  
+rocommunity     <%= community %>
+rocommunity6    <%= community %>
+<% end -%>
 syslocation     <%= node[:snmpd][:location] %>
 <% if node[:snmpd][:contact] -%>
 syscontact      <%= node[:snmpd][:contact] %>