From 7519a8c39dc5fc4ca6c9daf7976cd661185e215a Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 6 Apr 2023 10:20:17 -0400 Subject: [PATCH] only install salt-minion on non manager --- setup/so-functions | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 9dbc95173..7520122db 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2030,19 +2030,16 @@ saltify() { fi if [[ $is_rocky ]]; then - # THIS IS A TEMP HACK - #logCmd "dnf -y install securityonion-salt python3-audit python3-libsemanage python3-policycoreutils python3-setools python3-setuptools python3-chardet python3-idna python3-pysocks python3-requests python3-urllib3 python3-websocket-client python3-docker" - logCmd "dnf -y install salt salt-master salt-minion" + if [[ $waitforstate ]]; then + # install all for a manager + logCmd "dnf -y install salt salt-master salt-minion" + else + # We just need the minion + logCmd "dnf -y install salt salt-minion" + fi logCmd "mkdir -p /etc/salt/minion.d" logCmd "salt-pip install docker --no-index --only-binary=:all: --find-links files/salt_module_deps/docker/" logCmd "salt-pip install pymysql --no-index --only-binary=:all: --find-links files/salt_module_deps/pymysql/" - #if [[ $waitforstate ]]; then - # # Since this is a salt master so let's install it - # logCmd "" - #else - # # We just need the minion - # logCmd "dnf -y install salt-minion" - #fi fi }