From c94436fcbd779f2f7716b873b5a90d94889a34fd Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 18 Jul 2023 15:19:10 -0400 Subject: [PATCH] fix other OS installs --- salt/common/tools/sbin/so-common | 3 +++ setup/so-functions | 1 + 2 files changed, 4 insertions(+) diff --git a/salt/common/tools/sbin/so-common b/salt/common/tools/sbin/so-common index f5283c356..dde95f366 100755 --- a/salt/common/tools/sbin/so-common +++ b/salt/common/tools/sbin/so-common @@ -210,6 +210,9 @@ gpg_rpm_import() { rpm --import $RPMKEYSLOC/$RPMKEY echo "Imported $RPMKEY" done + else + info "Importing the security onion GPG key" + rpm --import ../salt/repo/client/files/oracle/keys/securityonion.pub fi } diff --git a/setup/so-functions b/setup/so-functions index fd3e59dff..5808026ac 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2002,6 +2002,7 @@ repo_sync_local() { if [[ $is_rpm ]]; then dnf -y install epel-release dnf install -y yum-utils device-mapper-persistent-data lvm2 + curl -fsSL https://repo.securityonion.net/file/so-repo/prod/2.4/so/so.repo | tee /etc/yum.repos.d/so.repo rpm --import https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub if [[ $is_rhel ]]; then dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo