Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Add support for map serialized kibana and dashboard configuration setup. #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ Supported variables are as follows:
- **beats_pid_dir** (*Defaults to `/var/run`*): Location of beats pid file.
- **beats_conf_dir** (*Defaults to `/etc/{beat}`*): Location of conf directory for beats configuration file.
- **default_ilm_policy** (*Defaults undefined*): local path to default policy if any custom one is defined
- **setup_conf** (*Defaults undefined*): Setup of kibana and dashboard configuration. Should be defined as a map . Map is serialized into setup section of beat config.

### Focus on ILM

Expand Down
6 changes: 6 additions & 0 deletions tasks/beats-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
shipper: '{{ shipper_conf }}'
when: shipper_conf is defined

- name: Set beat_setup_conf
set_fact:
beat_setup_conf:
setup: '{{ setup_conf }}'
when: setup_conf is defined

- name: Set beat_logging_conf
set_fact:
beat_logging_conf:
Expand Down
5 changes: 5 additions & 0 deletions templates/beat.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

{{ beat_output_conf | to_nice_yaml(indent=2) }}

{% if beat_setup_conf is defined %}############################## Setup ##########################################

{{ beat_setup_conf | to_nice_yaml(indent=2) }}
{% endif %}

{% if shipper_conf is defined %}############################# Shipper #########################################

{{ beat_shipper_conf | to_nice_yaml(indent=2) }}
Expand Down