Skip to content

Commit

Permalink
Support basic authentication on Elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Jul 19, 2018
1 parent 576c7c3 commit 4533928
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jobs/kibana/spec
Expand Up @@ -28,6 +28,10 @@ properties:
kibana.elasticsearch.port:
description: "Port of elasticsearch master to send elasticsearch requests to"
default: "9200"
kibana.elasticsearch.username:
description: "The username of basic authentication on Elasticsearch"
kibana.elasticsearch.password:
description: "The password of basic authentication on Elasticsearch"
kibana.port:
description: "Kibana is served by a back end server. This controls which port to use."
default: 5601
Expand Down
4 changes: 4 additions & 0 deletions jobs/kibana/templates/config/kibana.yml
Expand Up @@ -114,5 +114,9 @@ kibana.defaultAppId: <%= p('kibana.default_app_id') %>
end
%>
elasticsearch.url: <%= p("kibana.elasticsearch.protocol") + '://' + elasticsearch_host + ':' + p("kibana.elasticsearch.port") %>
<% if_p("kibana.elasticsearch.username") do |username| %>
elasticsearch.username: <%= username %>
elasticsearch.password: <%= p("kibana.elasticsearch.password") %>
<% end %>
elasticsearch.requestTimeout: <%= p('kibana.request_timeout') %>
elasticsearch.shardTimeout: <%= p('kibana.shard_timeout') %>

0 comments on commit 4533928

Please sign in to comment.