Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/kibana/tasks/kibana-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

- name: fetch Kibana password
shell: >
grep "PASSWORD kibana " /usr/share/elasticsearch/initial_passwords |
grep "PASSWORD kibana_system " /usr/share/elasticsearch/initial_passwords |
awk {' print $4 '}
register: kibana_password
changed_when: false
Expand Down
2 changes: 1 addition & 1 deletion roles/kibana/templates/kibana.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ server.host: "0.0.0.0"

{% if elastic_stack_full_stack is defined and elastic_stack_full_stack | bool and kibana_security | bool and elastic_variant == "elastic" %}
elasticsearch.hosts: [{% for host in kibana_elasticsearch_hosts %}"https://{{ host }}:9200"{% if not loop.last %},{% endif %}{% endfor %}]
elasticsearch.username: "kibana"
elasticsearch.username: "kibana_system"
elasticsearch.password: "{{ kibana_password.stdout }}"
elasticsearch.ssl.certificateAuthorities: "/etc/kibana/certs/ca.crt"
{% if "localhost" in kibana_elasticsearch_hosts %}elasticsearch.ssl.verificationMode: certificate
Expand Down