From c50184edbd3fb4c6d2016985d162ca8ca04908ce Mon Sep 17 00:00:00 2001 From: Miguelangel Freitas Date: Tue, 22 Aug 2017 18:44:38 -0400 Subject: [PATCH] Add granular Active Response settings --- .../templates/var-ossec-etc-ossec-server.conf.j2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 df9aeade..8f814164 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 @@ -245,10 +245,15 @@ {% for response in wazuh_manager_config.active_responses %} + no {{ response.command }} - {{ response.location }} - {{ response.level }} - {{ response.timeout }} + {%if response.location is defined %}{{ response.location }}{% endif %} + {%if response.agent_id is defined %}{{ response.agent_id }}{% endif %} + {%if response.level is defined %}{{ response.level }}{% endif %} + {%if response.rules_group is defined %}{{ response.rules_group }}{% endif %} + {%if response.rules_id is defined %}{{ response.rules_id }}{% endif %} + {%if response.timeout is defined %}{{ response.timeout }}{% endif %} + {%if response.repeated_offenders is defined %}{{ response.repeated_offenders }}{% endif %} {% endfor %}