mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Salt local install of Analyst Workstation
This commit is contained in:
@@ -138,6 +138,21 @@ analyze_system() {
|
||||
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() {
|
||||
|
||||
local pillar_file=$temp_install_dir/pillar/minions/$MINION_ID.sls
|
||||
|
||||
@@ -100,11 +100,15 @@ if [[ $is_analyst ]]; then
|
||||
fi
|
||||
|
||||
if ! whiptail_analyst_install; then
|
||||
if [[ $is_analyst_iso ]]; then
|
||||
# Lets make this a standalone
|
||||
echo "Enabling graphical interface and setting it to load at boot"
|
||||
systemctl set-default graphical.target
|
||||
startx
|
||||
exit 0
|
||||
else
|
||||
analyst_salt_local
|
||||
fi
|
||||
fi
|
||||
|
||||
# If you got this far then you want to join the grid
|
||||
|
||||
Reference in New Issue
Block a user