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"
|
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
|
||||||
|
|||||||
@@ -100,11 +100,15 @@ if [[ $is_analyst ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! whiptail_analyst_install; then
|
if ! whiptail_analyst_install; then
|
||||||
# Lets make this a standalone
|
if [[ $is_analyst_iso ]]; then
|
||||||
echo "Enabling graphical interface and setting it to load at boot"
|
# Lets make this a standalone
|
||||||
systemctl set-default graphical.target
|
echo "Enabling graphical interface and setting it to load at boot"
|
||||||
startx
|
systemctl set-default graphical.target
|
||||||
exit 0
|
startx
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user