Skip to content

Commit

Permalink
Add support for a few more Elasticsearch integration options
Browse files Browse the repository at this point in the history
Adds support for is_external, username, password, and tags.

Fixes #169

Signed-off-by: Mike Fiedler <[email protected]>
  • Loading branch information
chrissnell authored and miketheman committed Feb 27, 2015
1 parent 713311b commit 4e045fc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions templates/default/elastic.yaml.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
instances:
<% @instances.each do |i| -%>
- url: <%= i["url"] %>
<% unless i["is_external"].nil? %>
is_external: <%= i["is_external"] %>
<% end %>
<% unless i["username"].nil? %>
username: <%= i["username"] %>
<% end %>
<% unless i["password"].nil? %>
password: <%= i["password"] %>
<% end %>
<% if i.key?('tags') -%>
tags:
<% i['tags'].each do |t| -%>
- <%= t %>
<% end -%>
<% end -%>
<% end %>

# Nothing to configure below
Expand Down

0 comments on commit 4e045fc

Please sign in to comment.