Merge pull request #737 from Security-Onion-Solutions/quickfix/wazuh

https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/695
This commit is contained in:
Josh Patterson
2020-05-19 13:27:52 -04:00
committed by GitHub
4 changed files with 9 additions and 12 deletions

View File

@@ -426,6 +426,13 @@ fi
fi
if [[ "$WAZUH" = 1 ]]; then
if [ $OS = 'centos' ]; then
yum -y install wazuh-agent-3.10.2-1 >> "$setup_log" 2>&1
echo "exclude=wazuh-agent" >> /etc/yum.repos.d/wazuh.repo
else
apt-get -y install wazuh-agent=3.10.2-1 >> "$setup_log" 2>&1
apt-mark hold wazuh-agent >> "$setup_log" 2>&1
fi
set_progress_str 75 "$(print_salt_state_apply 'wazuh')"
salt-call state.apply -l info wazuh >> $setup_log 2>&1
fi