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

Merge 4.7.0 into master #987

Merged
merged 19 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
272dbe5
delete update_from_year parameter
vcerenu Jul 26, 2023
82e21c5
Merge pull request #964 from wazuh/963-deprecate-update_from_year-to-…
vcerenu Jul 26, 2023
63cd551
Added retry in Debian/Ubuntu installs
c-bordon Aug 1, 2023
9ed4865
Merge pull request #968 from wazuh/912-ubuntu-pr-checks-failing-to4.5.2
teddytpc1 Aug 1, 2023
56e6dfd
Updating configuration file with AlmaLinux support in the vulnerabili…
pereyra-m Aug 8, 2023
bec778f
Merge pull request #974 from wazuh/10774-alma-support
teddytpc1 Aug 9, 2023
bb8a0f3
Changed check_packages order
davidcr01 Aug 9, 2023
f2ac235
Merge pull request #978 from wazuh/977-fix-check-packages
teddytpc1 Aug 9, 2023
f32a85a
Added missing providers
davidcr01 Aug 10, 2023
238eb05
Edited VD config and jinja2 template
davidcr01 Aug 10, 2023
3738f50
Merge pull request #979 from wazuh/975-vulnerability-detector-missing…
teddytpc1 Aug 10, 2023
6792a30
Merge pull request #982 from wazuh/merge-4.5-into-4.5.1
davidcr01 Aug 11, 2023
d81e0f8
Merge branch '4.5.2' into merge-4.5.1-into-4.5.2
davidcr01 Aug 11, 2023
d3a8d2c
Merge pull request #983 from wazuh/merge-4.5.1-into-4.5.2
davidcr01 Aug 11, 2023
d58be72
Removed NVD `update_year` parameter
davidcr01 Aug 11, 2023
327f39d
Merge pull request #985 from wazuh/981-4.5.2-fix
teddytpc1 Aug 11, 2023
263a98f
Merge branch '4.6.0' into merge-4.5.2-into-4.6.0
teddytpc1 Aug 11, 2023
24f5463
Merge pull request #984 from wazuh/merge-4.5.2-into-4.6.0
teddytpc1 Aug 11, 2023
137ddbd
Merge pull request #986 from wazuh/merge-4.6.0-into-4.7.0
teddytpc1 Aug 11, 2023
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
17 changes: 9 additions & 8 deletions .github/playbooks/aio-wazuh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
become: true
become_user: root
roles:
# 1. Check packages
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
# 2. Generate certificates
- role: ../../roles/wazuh/wazuh-indexer
vars:
generate_certs: true
Expand Down Expand Up @@ -30,24 +36,19 @@
become: true
become_user: root
roles:
# 1. Check packages
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
# 2. Wazuh indexer
# 1. Wazuh indexer
- role: ../../roles/wazuh/wazuh-indexer
vars:
indexer_node_name: "wazuh-es01"
single_node: true
# 3. Managers
# 2. Managers
- role: ../../roles/wazuh/ansible-wazuh-manager
- role: ../../roles/wazuh/ansible-filebeat-oss
vars:
filebeat_node_name: "wazuh-mgr01"
filebeat_output_indexer_hosts:
- "localhost:9200"
# 4. Wazuh dashboard
# 3. Wazuh dashboard
- role: ../../roles/wazuh/wazuh-dashboard
vars:
dashboard_node_name: "wazuh-dash01"
Expand Down
11 changes: 5 additions & 6 deletions .github/playbooks/single-wazuh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
- name: ConvergeCerts
hosts: localhost
roles:
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
- role: ../../roles/wazuh/wazuh-indexer
perform_installation: false
vars:
Expand All @@ -15,12 +19,7 @@
- name: ConvergeInstall
hosts: localhost
roles:
# 1. Check packages
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
# 2. Managers
# Managers
- role: ../../roles/wazuh/ansible-wazuh-manager
vars:
- role: ../../roles/wazuh/ansible-filebeat-oss
Expand Down
3 changes: 3 additions & 0 deletions roles/wazuh/ansible-filebeat-oss/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
tags:
- install
- init
until: "install is not failed"
retries: 10
delay: 10
when: ansible_os_family == 'Debian'

- name: Checking if Filebeat Module folder file exists
Expand Down
43 changes: 38 additions & 5 deletions roles/wazuh/ansible-wazuh-manager/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,29 +173,62 @@ wazuh_manager_sca:
wazuh_manager_vulnerability_detector:
enabled: 'no'
interval: '5m'
min_full_scan_interval: '6h'
run_on_start: 'yes'
providers:
- enabled: 'no'
os:
- 'trusty'
- 'xenial'
- 'bionic'
- 'focal'
- 'jammy'
update_interval: '1h'
name: '"canonical"'
- enabled: 'no'
os:
- 'wheezy'
- 'stretch'
- 'jessie'
- 'buster'
- 'bullseye'
update_interval: '1h'
name: '"debian"'
- enabled: 'no'
update_from_year: '2010'
os:
- '5'
- '6'
- '7'
- '8'
- '9'
update_interval: '1h'
name: '"redhat"'
- enabled: 'no'
update_from_year: '2010'
os:
- '8'
- '9'
update_interval: '1h'
name: '"almalinux"'
- enabled: 'no'
os:
- 'amazon-linux'
- 'amazon-linux-2'
update_interval: '1h'
name: '"alas"'
- enabled: 'no'
os:
- '11-server'
- '11-desktop'
- '12-server'
- '12-desktop'
- '15-server'
- '15-desktop'
update_interval: '1h'
name: '"suse"'
- enabled: 'no'
update_interval: '1h'
name: '"arch"'
- enabled: 'no'
update_interval: '1h'
name: '"msu"'
- enabled: 'no'
update_interval: '1h'
name: '"nvd"'

Expand Down
4 changes: 4 additions & 0 deletions roles/wazuh/ansible-wazuh-manager/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
- tar
- curl
state: present
register: package_status
until: "package_status is not failed"
retries: 10
delay: 10

- include_vars: ../../vars/repo_vars.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@
{% if wazuh_manager_config.vulnerability_detector.interval is defined %}
<interval>{{ wazuh_manager_config.vulnerability_detector.interval }}</interval>
{% endif %}
{% if wazuh_manager_config.vulnerability_detector.min_full_scan_interval is defined %}
<min_full_scan_interval>{{ wazuh_manager_config.vulnerability_detector.min_full_scan_interval }}</min_full_scan_interval>
{% endif %}
{% if wazuh_manager_config.vulnerability_detector.run_on_start is defined %}
<run_on_start>{{ wazuh_manager_config.vulnerability_detector.run_on_start }}</run_on_start>
{% endif %}
Expand All @@ -279,9 +282,6 @@
<os>{{ os_ }}</os>
{% endfor %}
{% endif %}
{% if provider_.update_from_year is defined %}
<update_from_year>{{ provider_.update_from_year }}</update_from_year>
{% endif %}
{% if provider_.update_interval is defined %}
<update_interval>{{ provider_.update_interval }}</update_interval>
{% endif %}
Expand Down
Loading