Kibana: merge the proxy back into the main role

This commit is contained in:
Jérémy Lecour 2017-07-13 14:58:44 +02:00 committed by Jérémy Lecour
parent aedc0d3452
commit 913e547f04
8 changed files with 10 additions and 37 deletions

View file

@ -1,15 +0,0 @@
# kibana
Install kibana proxy configurations (with or without SSL) for Nginx.
## Tasks
Everything is in the `tasks/main.yml` file.
## Available variables
The only variables are derived from gathered facts.
By default, Kibana will bind to localhost:5601.
The configurations are installed but not enabled.

View file

@ -1,19 +0,0 @@
galaxy_info:
author: Evolix
description: Install kibana proxy configurations (with or without SSL) for Nginx.
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
license: GPLv2
min_ansible_version: 2.2
platforms:
- name: Debian
versions:
- jessie
dependencies: []
# List your role dependencies here, one per line.
# Be sure to remove the '[]' above if you add dependencies
# to this list.

View file

@ -8,7 +8,9 @@ Everything is in the `tasks/main.yml` file.
## Available variables
The only variables are derived from gathered facts.
* `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 ;
* `kibana_proxy_ssl_key` : private key to use for the proxy ;
By default, Kibana will bind to localhost:5601.
If Nginx is installed, a typical proxy configuration is copied into `/etc/nginx/sites-available`. It can be tweeked and enabled by hand.

View file

@ -1,4 +1,6 @@
---
kibana_proxy_nginx: False
kibana_proxy_domain: "kibana.{{ ansible_fqdn }}"
kibana_proxy_ssl_cert: "/etc/ssl/certs/{{ ansible_fqdn }}.crt"
kibana_proxy_ssl_key: "/etc/ssl/private/{{ ansible_fqdn }}.key"

View file

@ -78,3 +78,6 @@
args:
warn: no
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
- include: proxy_nginx.yml
when: kibana_proxy_nginx

View file

@ -11,7 +11,7 @@ server {
server {
charset utf-8;
listen 443 ssl spdy;
listen 443 ssl;
server_name {{ kibana_proxy_domain }};