openstack-ansible-ops/elk_metrics_7x/roles/elastic_beat_setup/defaults/main.yml
Duncan Martin Walker 8d865b7736 Expose interface configuration options for beat install
This update exposes options for configuring beats to communicate on non-standard
interfaces, i.e. not those used by ansible itself, where proxies are enabled.
This includes allowing the elasticsearch and logstash node/bind addresses to be
overridden to use different interfaces, and letting no_proxy environment variables
be specified when the required interface does not match the kibana ansible_host
address. The default behaviour has not changed, these configurations are purely
optional.

Change-Id: I3e2230ce3de349f219306c11d476e46ae3ed8f65
2020-01-23 15:33:34 +00:00

35 lines
1.3 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.
# Each setup flag is run one at a time.
elastic_setup_flags:
- "--index-management"
- "--pipelines"
# - "--dashboards"
# Setup options are cast as a string with, one option per line.
elastic_beat_setup_options: >-
-E 'output.logstash.enabled=false'
-E 'output.elasticsearch.hosts={{ coordination_nodes | to_json }}'
-E 'setup.template.enabled=true'
-E 'setup.template.overwrite=true'
elastic_beat_kibana_host: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
# The variable defined here will be used to set the environment variable, "no_proxy".
# This is by default set to elastic_beat_kibana_host, but if using a non-standard
# interface, the no_proxy enivronment may need to be changed.
elastic_beat_no_proxy: "{{ elastic_beat_kibana_host }}"