#
# This file is generated by Chef
# Do not edit, changes will be overwritten
#
LoadPlugin "<%= @name %>"

<% if not @options.empty? %>
<Plugin "<%= @name %>">
  <% @options.each_pair do |key, value|
    if value.is_a? Array 
      value.each do |subvalue| %>
  <%= collectd_key(key) %> <%= collectd_option(subvalue) %>
  <% end else %>
  <%= collectd_key(key) %> <%= collectd_option(value) %>
  <% end end %>
</Plugin>
<% end %>

#
# This file is generated by Chef
# Do not edit, changes will be overwritten
#
LoadPlugin "<%= @type %>"

<% if not @config.empty? %>
<Plugin "<%= @type %>">
  <% @config.each_pair do |key, value|
    if value.is_a? Array 
      value.each do |subvalue| %>
  <%= collectd_key(key) %> <%= collectd_option(subvalue) %>
  <% end else %>
  <%= collectd_key(key) %> <%= collectd_option(value) %>
  <% end end %>
</Plugin>
<% end %>

Update the names of the variables to match those passed in
Update the names of the variables to match those passed in
