Commit 2db3e43d by Jesse Zoldak

Enable configuration of splunk host value

parent e19ac342
...@@ -47,6 +47,8 @@ SPLUNKFORWARDER_SERVERS: ...@@ -47,6 +47,8 @@ SPLUNKFORWARDER_SERVERS:
# entire fleet. # # entire fleet. #
############################################################################### ###############################################################################
SPLUNKFORWARDER_HOST_VALUE: !!null
SPLUNKFORWARDER_LOG_ITEMS: SPLUNKFORWARDER_LOG_ITEMS:
- source: '{{ COMMON_LOG_DIR }}/lms' - source: '{{ COMMON_LOG_DIR }}/lms'
recursive: true recursive: true
......
# {{ ansible_managed }} # {{ ansible_managed }}
{% if SPLUNKFORWARDER_HOST_VALUE is defined %}
[default]
host = {{ SPLUNKFORWARDER_HOST_VALUE }}
{% endif %}
{% for loggable in SPLUNKFORWARDER_LOG_ITEMS%} {% for loggable in SPLUNKFORWARDER_LOG_ITEMS%}
[monitor://{{ loggable.source }}] [monitor://{{ loggable.source }}]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment