mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
prevent wazuh-agent from updating - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/695
This commit is contained in:
@@ -45,10 +45,11 @@ ossec:
|
|||||||
|
|
||||||
# Add wazuh agent
|
# Add wazuh agent
|
||||||
wazuhpkgs:
|
wazuhpkgs:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- skip_suggestions: False
|
- skip_suggestions: False
|
||||||
- pkgs:
|
- pkgs:
|
||||||
- wazuh-agent: 3.10.2-1
|
- wazuh-agent: 3.10.2-1
|
||||||
|
- update_holds: True
|
||||||
|
|
||||||
# Add Wazuh agent conf
|
# Add Wazuh agent conf
|
||||||
wazuhagentconf:
|
wazuhagentconf:
|
||||||
|
|||||||
@@ -1131,6 +1131,7 @@ saltify() {
|
|||||||
apt-key add "$temp_install_dir"/gpg/GPG-KEY-WAZUH >> "$setup_log" 2>&1
|
apt-key add "$temp_install_dir"/gpg/GPG-KEY-WAZUH >> "$setup_log" 2>&1
|
||||||
echo "deb http://repo.saltstack.com$py_ver_url_path/ubuntu/$ubuntu_version/amd64/archive/2019.2.5/ $OSVER main" > /etc/apt/sources.list.d/saltstack.list >> "$setup_log" 2>&1
|
echo "deb http://repo.saltstack.com$py_ver_url_path/ubuntu/$ubuntu_version/amd64/archive/2019.2.5/ $OSVER main" > /etc/apt/sources.list.d/saltstack.list >> "$setup_log" 2>&1
|
||||||
echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list >> "$setup_log" 2>&1
|
echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list >> "$setup_log" 2>&1
|
||||||
|
apt-mark hold wazuh-agent >> "$setup_log" 2>&1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
apt-get update >> "$setup_log" 2>&1
|
apt-get update >> "$setup_log" 2>&1
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ enabled=1
|
|||||||
name=Wazuh repository
|
name=Wazuh repository
|
||||||
baseurl=https://packages.wazuh.com/3.x/yum/
|
baseurl=https://packages.wazuh.com/3.x/yum/
|
||||||
protect=1
|
protect=1
|
||||||
|
exclude=wazuh-agent
|
||||||
Reference in New Issue
Block a user