mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Setup Script - Cleanup of some Wazuh
This commit is contained in:
@@ -620,6 +620,15 @@ saltify() {
|
|||||||
|
|
||||||
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
|
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
|
||||||
yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
|
yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
|
||||||
|
cat > /etc/yum.repos.d/wazuh.repo <<\EOF
|
||||||
|
[wazuh_repo]
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH
|
||||||
|
enabled=1
|
||||||
|
name=Wazuh repository
|
||||||
|
baseurl=https://packages.wazuh.com/3.x/yum/
|
||||||
|
protect=1
|
||||||
|
EOF
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
@@ -722,12 +731,22 @@ EOF
|
|||||||
echo "enabled=1" >> /etc/yum.repos.d/salt-latest.repo
|
echo "enabled=1" >> /etc/yum.repos.d/salt-latest.repo
|
||||||
echo "gpgcheck=1" >> /etc/yum.repos.d/salt-latest.repo
|
echo "gpgcheck=1" >> /etc/yum.repos.d/salt-latest.repo
|
||||||
echo "gpgkey=file:///etc/pki/rpm-gpg/saltstack-signing-key" >> /etc/yum.repos.d/salt-latest.repo
|
echo "gpgkey=file:///etc/pki/rpm-gpg/saltstack-signing-key" >> /etc/yum.repos.d/salt-latest.repo
|
||||||
|
|
||||||
|
cat > /etc/yum.repos.d/wazuh.repo <<\EOF
|
||||||
|
[wazuh_repo]
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-WAZUH
|
||||||
|
enabled=1
|
||||||
|
name=Wazuh repository
|
||||||
|
baseurl=https://packages.wazuh.com/3.x/yum/
|
||||||
|
protect=1
|
||||||
|
EOF
|
||||||
else
|
else
|
||||||
yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
|
yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
|
||||||
cat > /etc/yum.repos.d/wazuh.repo <<\EOF
|
cat > /etc/yum.repos.d/wazuh.repo <<\EOF
|
||||||
[wazuh_repo]
|
[wazuh_repo]
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH
|
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-WAZUH
|
||||||
enabled=1
|
enabled=1
|
||||||
name=Wazuh repository
|
name=Wazuh repository
|
||||||
baseurl=https://packages.wazuh.com/3.x/yum/
|
baseurl=https://packages.wazuh.com/3.x/yum/
|
||||||
|
|||||||
Reference in New Issue
Block a user