From 956b56b82b0aa2069161bf183e7642d35da0e188 Mon Sep 17 00:00:00 2001 From: Bob Vincent Date: Tue, 24 Jul 2018 15:17:21 -0400 Subject: [PATCH] Support all localfile options. #43 --- .../var-ossec-etc-ossec-server.conf.j2 | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 index 4c79498f..788ecec0 100644 --- a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 +++ b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 @@ -340,9 +340,33 @@ {{ localfile.format }} {% if localfile.format == 'command' or localfile.format == 'full_command' %} {{ localfile.command }} + {% if localfile.alias is defined %} + {{ localfile.alias }} + {% endif %} + {% if localfile.frequency is defined %} {{ localfile.frequency }} + {% endif %} {% else %} {{ localfile.location }} + {% if localfile.format == 'eventchannel' %} + {% if localfile.only_future_events is defined %} + {{ localfile.only_future_events }} + {% endif %} + {% if localfile.query is defined %} + {{ localfile.query }} + {% endif %} + {% endif %} + {% endif %} + {% if localfile.log_format == 'json' and localfile.labels is defined %} + {% for key, value in localfile.labels.iteritems() %} + + {% endfor %} + {% endif %} + {% if localfile.target is defined %} + {{ localfile.target }} + {% endif %} + {% if localfile.out_format is defined %} + {{ localfile.out_format }} {% endif %} {% endfor %}