Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #generated by Chef recipe[<%= cookbook_name %>::<%= recipe_name %>]
- <% node['td_agent']['config']['sources'].each do |source| %>
- <source>
- <% source.each do |key, value| %>
- <% if node.name =~ /_zserver-/i && source['node_type'] =~ /_zserver-/i %>
- <% puts "Value is #{value}, key is #{key}" %>
- <% if key != 'node_type' %>
- <%= key %> <%= value %>
- <% end %>
- <% end %>
- <% end %>
- </source>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement