Skip to content

Commit

Permalink
handle arrays in config, for 4.1 config key/val pairs (bundled plugin…
Browse files Browse the repository at this point in the history
…s entry)
  • Loading branch information
madAndroid committed Feb 10, 2017
1 parent 64af8a9 commit d53b761
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/kibana.yml.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# This file is managed by Puppet, any changes will be overwritten

<% scope['kibana4::config'].keys.sort.each do |key| -%>
<% unless scope['kibana4::config'][key].is_a?(Array) -%>
<%= key %>: <%= scope['kibana4::config'][key] %>
<% else -%>
<%= key %>:
<% scope['kibana4::config'][key].each do |e| -%>
- <%= e %>
<% end -%>
<% end -%>
<% end -%>

0 comments on commit d53b761

Please sign in to comment.