Omit dahsboard on elk setup by default

With the introduction of the "infrustructure" panel and "canvas" becoming
stable, there's not a lot of reason to import the  general beat dashboards.
The default dashboard are almost always in a state of disrepare and take a
long time to import on high traffic clusters.

This channge removes the default dashboard from the beat setup role by
default. If a deployer wishes to renable the default dashboards, or add any
other beat flags, the variable `elastic_setup_flags` can be used to extend
the setup.

Change-Id: If44845f53e4d0cb1e91ec804060316fb852b4bfa
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
This commit is contained in:
Kevin Carter 2019-01-27 01:25:05 -06:00
parent 78221b17d4
commit 151d80382c
3 changed files with 13 additions and 1 deletions

View File

@ -88,6 +88,14 @@
retries: 6
delay: 30
run_once: true
rescue:
- name: Notify deployer
debug:
msg: >-
Index pattern refresh was not possible at this time. Either there are no dashboards
loaded or the index being refreshed does not exist. While the task failed, this is
not a fatal error, so the play has been rescued.
run_once: true
when:
- index_fields_return.status == 200
- index_fields_format_return.status == 200

View File

@ -18,7 +18,7 @@ elastic_setup_flags:
- "--template"
- "--pipelines"
- "--machine-learning"
- "--dashboards"
# - "--dashboards"
# Setup options are cast as a string with, one option per line.
elastic_beat_setup_options: >-

View File

@ -111,6 +111,10 @@ all_systems:
vars:
elastic_skydive_retention: 2 # Elastic retention set to 2 days max
elastic_skydive_size: 51200 # Elastic retention set to 50GiB max
elastic_setup_flags:
- "--template"
- "--pipelines"
- "--machine-learning"
children:
elastic-logstash_all:
children: