Labels configuration (#135)

This commit is contained in:
Carlos Dominguez 2019-01-14 09:12:09 +01:00 committed by Jesús Linares
parent 59008bda4d
commit e97a0ff7a3
4 changed files with 27 additions and 0 deletions

View File

@ -300,3 +300,8 @@ wazuh_agent_config:
location: 'System'
- format: 'syslog'
location: 'active-response\active-responses.log'
labels:
enable: false
list:
- key: Env
value: Production

View File

@ -339,4 +339,13 @@
</localfile>
{% endfor %}
{% endif %}
{% if wazuh_agent_config.labels.enable == true %}
<labels>
{% for label in wazuh_agent_config.labels.list %}
<label key="{{ label.key }}"{% if label.hidden is defined %} hidden="{{ label.hidden }}"{% endif %}>{{ label.value }}</label>
{% endfor %}
</labels>
{% endif %}
</ossec_config>

View File

@ -271,6 +271,11 @@ wazuh_manager_config:
- server: null
port: null
format: null
labels:
enable: false
list:
- key: Env
value: Production
wazuh_agent_configs:
- type: os

View File

@ -539,4 +539,12 @@
{% endfor %}
{% endif %}
{% if wazuh_manager_config.labels.enable == true %}
<labels>
{% for label in wazuh_manager_config.labels.list %}
<label key="{{ label.key }}"{% if label.hidden is defined %} hidden="{{ label.hidden }}"{% endif %}>{{ label.value }}</label>
{% endfor %}
</labels>
{% endif %}
</ossec_config>