forked from evolix/ansible-roles
kibana: host and basepath configuration
This commit is contained in:
parent
888336e6fe
commit
72d08388a5
|
@ -8,6 +8,8 @@ Everything is in the `tasks/main.yml` file.
|
||||||
|
|
||||||
## Available variables
|
## Available variables
|
||||||
|
|
||||||
|
* `kibana_server_host` : Specifies the address to which the Kibana server will bind (default: `127.0.0.1`) ;
|
||||||
|
* `kibana_server_basepath` : where to mount the application (default: empty) ;
|
||||||
* `kibana_proxy_nginx` : configure an Nginx proxy (not enabled) for Kibana (default: `False`) ;
|
* `kibana_proxy_nginx` : configure an Nginx proxy (not enabled) for Kibana (default: `False`) ;
|
||||||
* `kibana_proxy_domain` : domain to use for the proxy ;
|
* `kibana_proxy_domain` : domain to use for the proxy ;
|
||||||
* `kibana_proxy_ssl_cert` : certificate to use for the proxy ;
|
* `kibana_proxy_ssl_cert` : certificate to use for the proxy ;
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
kibana_server_host: "127.0.0.1"
|
||||||
|
kibana_server_basepath: ""
|
||||||
|
|
||||||
kibana_proxy_nginx: False
|
kibana_proxy_nginx: False
|
||||||
|
|
||||||
kibana_proxy_domain: "kibana.{{ ansible_fqdn }}"
|
kibana_proxy_domain: "kibana.{{ ansible_fqdn }}"
|
||||||
|
|
|
@ -34,6 +34,22 @@
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
- name: kibana server host configuration
|
||||||
|
lineinfile:
|
||||||
|
src: /etc/kibana/kibana.yml
|
||||||
|
line: "server.host: \"{{ kibana_server_host }}\""
|
||||||
|
regexp: '^server.host:'
|
||||||
|
insertafter: '^#server.host:'
|
||||||
|
notify: restart kibana
|
||||||
|
|
||||||
|
- name: kibana server basepath configuration
|
||||||
|
lineinfile:
|
||||||
|
src: /etc/kibana/kibana.yml
|
||||||
|
line: "server.basePath: \"{{ kibana_server_basepath }}\""
|
||||||
|
regexp: '^server.basePath:'
|
||||||
|
insertafter: '^#server.basePath:'
|
||||||
|
notify: restart kibana
|
||||||
|
|
||||||
- name: Kibana service is enabled and started
|
- name: Kibana service is enabled and started
|
||||||
systemd:
|
systemd:
|
||||||
name: kibana
|
name: kibana
|
||||||
|
|
Loading…
Reference in a new issue