mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix version lock for wazuh
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
include:
|
include:
|
||||||
{% if grains.os == "CentOS" %}
|
|
||||||
- yum.packages
|
|
||||||
{% endif %}
|
|
||||||
- patch.needs_restarting
|
- patch.needs_restarting
|
||||||
|
|
||||||
patch_os:
|
patch_os:
|
||||||
|
|||||||
@@ -11,6 +11,11 @@
|
|||||||
|
|
||||||
|
|
||||||
base:
|
base:
|
||||||
|
|
||||||
|
'os:CentOS':
|
||||||
|
- match: grain
|
||||||
|
- yum.packages
|
||||||
|
|
||||||
'*':
|
'*':
|
||||||
- salt
|
- salt
|
||||||
- docker
|
- docker
|
||||||
|
|||||||
@@ -43,6 +43,14 @@ ossec:
|
|||||||
# - user: 945
|
# - user: 945
|
||||||
# - group: 945
|
# - group: 945
|
||||||
|
|
||||||
|
wazuhpkgs:
|
||||||
|
pkg.installed:
|
||||||
|
- skip_suggestions: False
|
||||||
|
- pkgs:
|
||||||
|
- wazuh-agent: 3.10.2-1
|
||||||
|
- hold: True
|
||||||
|
- update_holds: True
|
||||||
|
|
||||||
# Add Wazuh agent conf
|
# Add Wazuh agent conf
|
||||||
wazuhagentconf:
|
wazuhagentconf:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
install_yum_utils:
|
install_yum_utils:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: yum-utils
|
- name: yum-utils
|
||||||
|
|
||||||
|
install_yum_versionlock:
|
||||||
|
pkg.installed:
|
||||||
|
- name: yum-plugin-versionlock
|
||||||
|
|||||||
@@ -354,7 +354,6 @@ fi
|
|||||||
set_progress_str 22 'Generating CA and checking in'
|
set_progress_str 22 'Generating CA and checking in'
|
||||||
salt_checkin >> $setup_log 2>&1
|
salt_checkin >> $setup_log 2>&1
|
||||||
|
|
||||||
|
|
||||||
if [[ $is_master || $is_helix ]]; then
|
if [[ $is_master || $is_helix ]]; then
|
||||||
set_progress_str 25 'Configuring firewall'
|
set_progress_str 25 'Configuring firewall'
|
||||||
set_initial_firewall_policy >> $setup_log 2>&1
|
set_initial_firewall_policy >> $setup_log 2>&1
|
||||||
@@ -379,6 +378,11 @@ fi
|
|||||||
set_progress_str 62 "$(print_salt_state_apply 'firewall')"
|
set_progress_str 62 "$(print_salt_state_apply 'firewall')"
|
||||||
salt-call state.apply -l info firewall >> $setup_log 2>&1
|
salt-call state.apply -l info firewall >> $setup_log 2>&1
|
||||||
|
|
||||||
|
if [ $OS = 'centos' ]; then
|
||||||
|
set_progress_str 63 'Installing Yum utilities'
|
||||||
|
salt-call state.apply -l info yum.packages >> $setup_log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
set_progress_str 63 "$(print_salt_state_apply 'common')"
|
set_progress_str 63 "$(print_salt_state_apply 'common')"
|
||||||
salt-call state.apply -l info common >> $setup_log 2>&1
|
salt-call state.apply -l info common >> $setup_log 2>&1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user