Allow Logstash node.name override

The node.name Logstash config variable is currently hard coded
to inventory_hostname in the elastic_logstash role. This commit
exposes the option to modify this, which allows Logstash to be
identified under a more readable name in e.g. Kibana. The default
behaviour is unchanged.

Change-Id: Ic3b21d54c9759117550cc85bade3dc7900d0f502
This commit is contained in:
Duncan Martin Walker 2020-06-05 10:21:40 +01:00
parent 01352a45f6
commit 2a1a47457b
2 changed files with 4 additions and 1 deletions

View File

@ -102,3 +102,6 @@ logstash_collectd_buffer_size: 1452
logstash_collectd_security_level: Sign
# To enable security the auth file is required.
#logstash_collectd_authfile: /etc/collectd/passwd
# Set the descriptive name by which Logstash is identified
logstash_node_name: "{{ inventory_hostname }}"

View File

@ -16,7 +16,7 @@
#
# Use a descriptive name for the node:
#
node.name: {{ inventory_hostname }}
node.name: {{ logstash_node_name }}
#
# If omitted the node name will default to the machine's host name
#