Salt local install of Analyst Workstation

This commit is contained in:
Mike Reeves
2022-04-11 11:04:25 -04:00
parent 365866c9cc
commit d9416f3828
2 changed files with 24 additions and 5 deletions

View File

@@ -138,6 +138,21 @@ analyze_system() {
logCmd "ip a" logCmd "ip a"
} }
analyst_salt_local() {
# Install everything using local salt
# Set the repo
securityonion_repo
# Install salt
logCmd "yum -y install salt-minion-3004.1 httpd-tools python3 python36-docker python36-dateutil python36-m2crypto python36-mysql python36-packaging python36-lxml yum-utils device-mapper-persistent-data lvm2 openssl jq"
logCmd "yum -y update --exclude=salt*"
logCmd "systemctl enable salt-minion"
salt-call state.apply workstation --local --file-root=$temp_install_dir/salt/ -l info
}
analyst_workstation_pillar() { analyst_workstation_pillar() {
local pillar_file=$temp_install_dir/pillar/minions/$MINION_ID.sls local pillar_file=$temp_install_dir/pillar/minions/$MINION_ID.sls

View File

@@ -100,11 +100,15 @@ if [[ $is_analyst ]]; then
fi fi
if ! whiptail_analyst_install; then if ! whiptail_analyst_install; then
if [[ $is_analyst_iso ]]; then
# Lets make this a standalone # Lets make this a standalone
echo "Enabling graphical interface and setting it to load at boot" echo "Enabling graphical interface and setting it to load at boot"
systemctl set-default graphical.target systemctl set-default graphical.target
startx startx
exit 0 exit 0
else
analyst_salt_local
fi
fi fi
# If you got this far then you want to join the grid # If you got this far then you want to join the grid