01352a45f6
Currently it is possible for the elk_beat_setup flag not to trigger the beat_setup role when no kibana nodes are present. This means that there is no way to update the index templates in this situation, so beats will just use a default index setup, and ILM policies will not be applied. This can lead to inconsistent configurations where manual deletion of default-templated indices is required. This can happen during an ELK version upgrade, where new templates should be created but aren't. This commit ensures that the beat setup role is run whenever the elk_beat_setup flag is set to true. As a result, the user can force index templates to be updated even when no kibana nodes are present to ensure consistency. It also documents the previously undocumented elk_beat_setup var in both the Beat role defaults and the beat_setup role itself Change-Id: Ife0d0f12d6b300b84b63c3af14add1732747d44f
51 lines
2.1 KiB
YAML
51 lines
2.1 KiB
YAML
---
|
|
# Copyright 2018, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
#metricbeats monitoring endpoints
|
|
elastic_metricbeat_rabbitmq_monitoring_hosts: '"localhost:15672"'
|
|
elastic_metricbeat_haproxy_monitoring_hosts: '"unix:///var/run/haproxy.stat"'
|
|
|
|
metricbeat_service_state: restarted
|
|
|
|
# Inventory group to configure metricbeat ceph monitoring
|
|
# via either ceph-restapi or mgr prometheus module
|
|
ceph_metricbeat_group: cinder_volume
|
|
|
|
# Include default kibana dashboards
|
|
setup_kibana_dashboards: true
|
|
|
|
metricbeat_ilm_policy_name: "metricbeat-{{ beat_version }}"
|
|
metricbeat_ilm_policy_template: "metricbeat-{{ beat_version }}"
|
|
metricbeat_ilm_policy_filename: "metricbeat-ilm-policy.json"
|
|
metricbeat_ilm_policy_file_location: "/etc/metricbeat"
|
|
|
|
ilm_policy_name: "{{ metricbeat_ilm_policy_name | default('') }}"
|
|
ilm_policy: "{{ (metricbeat_ilm_policy | default(default_ilm_policy)) | default({}) }}"
|
|
ilm_policy_template: "{{ metricbeat_ilm_policy_template | default('') }}"
|
|
ilm_policy_filename: "{{ (metricbeat_ilm_policy_filename | default(default_ilm_policy_filename)) | default('') }}"
|
|
ilm_policy_file_location: "{{ (metricbeat_ilm_policy_file_location | default(default_ilm_policy_file_location)) | default('') }}"
|
|
|
|
# beat processors. Empty dictionary sets `add_host_metadata: ~`
|
|
processors: {}
|
|
|
|
# Logging level
|
|
# Available log levels are error, warning, info, debug
|
|
metricbeat_log_level: "{{ elastic_beat_log_level | default('info') }}"
|
|
|
|
# Override flag to force Beats to set up index templates. If this is not
|
|
# set, templates are only pushed when the user is either upgrading the
|
|
# beat version or deploying for the first time in the presence of kibana nodes
|
|
elk_beat_setup: false
|