Skip to content

Commit aeae4bf

Browse files
authored
Set baseURL in Kibana (NETWAYS#121)
fixes NETWAYS#68
1 parent 30972af commit aeae4bf

File tree

8 files changed

+6
-101
lines changed

8 files changed

+6
-101
lines changed

.github/workflows/test_role_kibana.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ jobs:
6767

6868
strategy:
6969
fail-fast: false
70-
max-parallel: 3
70+
max-parallel: 1
7171
matrix:
7272
distro: [ubuntu2204]
73-
scenario: [kibana_default, kibana_full_stack, kibana_full_stack-oss]
73+
scenario: [kibana_default, kibana_full_stack]
7474
release: [ 7, 8 ]
7575

7676
steps:

docs/role-kibana.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ These variables are identical over all our elastic related roles, hence the diff
2525
* *kibana_tls_key_passphrase*: Passphrase for kibana certificates (default: `PleaseChangeMe`)
2626
* *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)
2727
* *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.
28+
* *elastic_kibana_host*: Hostname users use to connect to Kibana (default: FQDN of the host the role is executed on)
29+
* *elastic_kibana_port*: Port Kibana webinterface is listening on (default: `5601`)
2830
* *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)
2931
* *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`)
3032
* *elastic_ca_pass*: Password for Elasticsearch CA (default: `PleaseChangeMe`)

molecule/kibana_full_stack-oss/converge.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

molecule/kibana_full_stack-oss/molecule.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

molecule/kibana_full_stack-oss/prepare.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

molecule/kibana_full_stack-oss/verify.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

roles/kibana/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ elastic_release: 8
2323
elastic_stack_full_stack: true
2424
elastic_variant: elastic
2525
elastic_elasticsearch_http_port: 9200
26+
elastic_kibana_port: 5601

roles/kibana/templates/kibana.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
server.host: "0.0.0.0"
2+
server.publicBaseUrl: "http{% if kibana_tls | bool %}s{% endif %}://{{ elastic_kibana_host | default( ansible_fqdn ) }}:{{ elastic_kibana_port }}"
23

34
{% if elastic_stack_full_stack is defined and elastic_stack_full_stack | bool and kibana_security | bool and elastic_variant == "elastic" %}
45
elasticsearch.hosts: [{% for host in kibana_elasticsearch_hosts %}"https://{{ host }}:{{ elastic_elasticsearch_http_port }}"{% if not loop.last %},{% endif %}{% endfor %}]

0 commit comments

Comments
 (0)