Skip to content

Set baseURL in Kibana #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 13, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/test_role_kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:

strategy:
fail-fast: false
max-parallel: 3
max-parallel: 1
matrix:
distro: [ubuntu2204]
scenario: [kibana_default, kibana_full_stack, kibana_full_stack-oss]
scenario: [kibana_default, kibana_full_stack]
release: [ 7, 8 ]

steps:
Expand Down
2 changes: 2 additions & 0 deletions docs/role-kibana.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ These variables are identical over all our elastic related roles, hence the diff
* *kibana_tls_key_passphrase*: Passphrase for kibana certificates (default: `PleaseChangeMe`)
* *kibana_cert_expiration_buffer*: Ansible will renew the kibana certificate if its validity is shorter than this value, which should be number of days. (default: 30)
* *kibana_cert_will_expire_soon*: Set it to true to renew kibana certificate (default: `fasle`), Or run the playbook with `--tags renew_kibana_cert` to do that.
* *elastic_kibana_host*: Hostname users use to connect to Kibana (default: FQDN of the host the role is executed on)
* *elastic_kibana_port*: Port Kibana webinterface is listening on (default: `5601`)
* *elasticsearch_ca*: Set to the inventory hostname of the host that should house the CA for certificates for inter-node communication. (default: First node in the `elasticsearch` host group)
* *elastic_ca_dir*: Directory where on the Elasticsearch CA host certificates are stored. This is only useful in connection with out other Elastic Stack related roles. (default: `/opt/es-ca`)
* *elastic_ca_pass*: Password for Elasticsearch CA (default: `PleaseChangeMe`)
Expand Down
26 changes: 0 additions & 26 deletions molecule/kibana_full_stack-oss/converge.yml

This file was deleted.

20 changes: 0 additions & 20 deletions molecule/kibana_full_stack-oss/molecule.yml

This file was deleted.

16 changes: 0 additions & 16 deletions molecule/kibana_full_stack-oss/prepare.yml

This file was deleted.

37 changes: 0 additions & 37 deletions molecule/kibana_full_stack-oss/verify.yml

This file was deleted.

1 change: 1 addition & 0 deletions roles/kibana/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ elastic_release: 8
elastic_stack_full_stack: true
elastic_variant: elastic
elastic_elasticsearch_http_port: 9200
elastic_kibana_port: 5601
1 change: 1 addition & 0 deletions roles/kibana/templates/kibana.yml.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
server.host: "0.0.0.0"
server.publicBaseUrl: "http{% if kibana_tls | bool %}s{% endif %}://{{ elastic_kibana_host | default( ansible_fqdn ) }}:{{ elastic_kibana_port }}"

{% 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 }}:{{ elastic_elasticsearch_http_port }}"{% if not loop.last %},{% endif %}{% endfor %}]
Expand Down