Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add url and path option for vulnerability-detector in ossec.conf manager V4.7.3 #1255

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 84 additions & 24 deletions roles/wazuh/ansible-wazuh-manager/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,59 +178,119 @@ wazuh_manager_vulnerability_detector:
providers:
- enabled: 'no'
os:
- 'trusty'
- 'xenial'
- 'bionic'
- 'focal'
- 'jammy'
- name: 'trusty'
#os_url:
#os_path:
- name: 'xenial'
#os_url:
#os_path:
- name: 'bionic'
#os_url:
#os_path:
- name: 'focal'
#os_url:
#os_path:
- name: 'jammy'
#os_url:
#os_path:
update_interval: '1h'
name: '"canonical"'
- enabled: 'no'
os:
- 'buster'
- 'bullseye'
- 'bookworm'
- name: 'buster'
#os_url:
#os_path:
- name: 'bullseye'
#os_url:
#os_path:
- name: 'bookworm'
#os_url:
#os_path:
update_interval: '1h'
name: '"debian"'
- enabled: 'no'
os:
- '5'
- '6'
- '7'
- '8'
- '9'
- name: '5'
#os_url:
#os_path:
- name: '6'
#os_url:
#os_path:
- name: '7'
#os_url:
#os_path:
- name: '8'
#os_url:
#os_path:
- name: '9'
#os_url:
#os_path:
update_interval: '1h'
name: '"redhat"'
- enabled: 'no'
os:
- '8'
- '9'
- name: '8'
#os_url:
#os_path:
- name: '9'
#os_url:
#os_path:
update_interval: '1h'
name: '"almalinux"'
- enabled: 'no'
os:
- 'amazon-linux'
- 'amazon-linux-2'
- 'amazon-linux-2023'
- name: 'amazon-linux'
#os_url:
#os_path:
- name: 'amazon-linux-2'
#os_url:
#os_path:
- name: 'amazon-linux-2023'
#os_url:
#os_path:
update_interval: '1h'
name: '"alas"'
- enabled: 'no'
os:
- '11-server'
- '11-desktop'
- '12-server'
- '12-desktop'
- '15-server'
- '15-desktop'
- name: '11-server'
#os_url:
#os_path:
- name: '11-desktop'
#os_url:
#os_path:
- name: '12-server'
#os_url:
#os_path:
- name: '12-desktop'
#os_url:
#os_path:
- name: '15-server'
#os_url:
#os_path:
- name: '15-desktop'
#os_url:
#os_path:
update_interval: '1h'
name: '"suse"'
- enabled: 'no'
os:
- name: 'arch'
#url:
#path:
update_interval: '1h'
name: '"arch"'
- enabled: 'no'
os:
- name: 'msu'
#url:
#path:
update_interval: '1h'
name: '"msu"'
- enabled: 'no'
os:
- name: 'nvd'
#url:
#path:
update_interval: '1h'
name: '"nvd"'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,19 @@
{% endif %}
{% if provider_.os is defined %}
{% for os_ in provider_.os %}
<os>{{ os_ }}</os>
{% if os_ is defined %}
{% if os_.os_url is defined %}
<os url="{{ os_.os_url }}">{{ os_.name }}</os>
{% elif os_.os_path is defined %}
<os path="{{ os_.os_path }}">{{ os_.name}}</os>
{% elif os_.url is defined %}
<url>{{ os_.url }}</url>
{% elif os_.path is defined %}
<path>{{ os_.path }}"</path>
{% else %}
<os>{{ os_.name }}</os>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if provider_.update_interval is defined %}
Expand Down