Fix vulnerability-detector variables structure

This commit is contained in:
Rshad Zhran 2019-12-19 11:02:27 +01:00
parent 9a42faebdf
commit 39e514d515
2 changed files with 26 additions and 30 deletions

View File

@ -215,35 +215,31 @@ wazuh_manager_config:
interval: '5m'
ignore_time: '6h'
run_on_start: 'yes'
providers_:
- canonical:
- enabled: 'no'
os:
- 'precise'
- 'trusty'
- 'xenial'
- 'bionic'
update_interval: '1h'
name: 'canonical'
- debian:
- enabled: 'no'
os:
- 'wheezy'
- 'stretch'
- 'jessie'
- 'buster'
update_interval: '1h'
name: 'debian'
- redhat:
- enabled: 'no'
update_from_year: '2010'
update_interval: '1h'
name: 'redhat'
- nvd:
- enabled: 'no'
update_from_year: '2010'
update_interval: '1h'
name: 'nvd'
providers:
- enabled: 'no'
os:
- 'precise'
- 'trusty'
- 'xenial'
- 'bionic'
update_interval: '1h'
name: 'canonical'
- enabled: 'no'
os:
- 'wheezy'
- 'stretch'
- 'jessie'
- 'buster'
update_interval: '1h'
name: 'debian'
- enabled: 'no'
update_from_year: '2010'
update_interval: '1h'
name: 'redhat'
- enabled: 'no'
update_from_year: '2010'
update_interval: '1h'
name: 'nvd'
vuls:
disable: 'yes'
interval: '1d'

View File

@ -258,7 +258,7 @@
<run_on_start>{{ wazuh_manager_config.vulnerability_detector.run_on_start }}</run_on_start>
{% endif %}
{% if wazuh_manager_config.vulnerability_detector.providers is defined %}
{% for provider_ in wazuh_manager_config.vulnerability_detector.providers_ %}
{% for provider_ in wazuh_manager_config.vulnerability_detector.providers %}
<provider name={{ provider_.name }}>
{% if provider_.enabled is defined %}
<enabled>{{ provider_.enabled }}</enabled>