kibana: host and basepath configuration

This commit is contained in:
Jérémy Lecour 2017-11-14 14:20:40 +01:00 committed by Jérémy Lecour
parent 888336e6fe
commit 72d08388a5
3 changed files with 22 additions and 0 deletions

View file

@ -8,6 +8,8 @@ Everything is in the `tasks/main.yml` file.
## 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_domain` : domain to use for the proxy ;
* `kibana_proxy_ssl_cert` : certificate to use for the proxy ;

View file

@ -1,4 +1,8 @@
---
kibana_server_host: "127.0.0.1"
kibana_server_basepath: ""
kibana_proxy_nginx: False
kibana_proxy_domain: "kibana.{{ ansible_fqdn }}"

View file

@ -34,6 +34,22 @@
tags:
- 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
systemd:
name: kibana