diff --git a/salt/allowed_states.map.jinja b/salt/allowed_states.map.jinja index 805b54ab2..a3c5c75ab 100644 --- a/salt/allowed_states.map.jinja +++ b/salt/allowed_states.map.jinja @@ -187,7 +187,7 @@ 'schedule', 'docker_clean' ], - 'so-workstation': [ + 'so-desktop': [ ], }, grain='role') %} diff --git a/salt/top.sls b/salt/top.sls index 11a594f29..e53791673 100644 --- a/salt/top.sls +++ b/salt/top.sls @@ -29,7 +29,7 @@ base: - salt.lasthighstate - docker - 'not *_workstation and G@saltversion:{{saltversion}}': + 'not *_desktop and G@saltversion:{{saltversion}}': - match: compound - common @@ -271,10 +271,10 @@ base: - schedule - docker_clean - 'J@workstation:gui:enabled:^[Tt][Rr][Uu][Ee]$ and ( G@saltversion:{{saltversion}} and G@os:Rocky )': + 'J@desktop:gui:enabled:^[Tt][Rr][Uu][Ee]$ and ( G@saltversion:{{saltversion}} and G@os:Rocky )': - match: compound - - workstation + - desktop - 'J@workstation:gui:enabled:^[Ff][Aa][Ll][Ss][Ee]$ and ( G@saltversion:{{saltversion}} and G@os:Rocky )': + 'J@desktop:gui:enabled:^[Ff][Aa][Ll][Ss][Ee]$ and ( G@saltversion:{{saltversion}} and G@os:Rocky )': - match: compound - - workstation.remove_gui + - desktop.remove_gui diff --git a/setup/so-functions b/setup/so-functions index 7bf388b99..814165fbb 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -83,7 +83,7 @@ analyze_system() { logCmd "ip a" } -analyst_salt_local() { +desktop_salt_local() { # Install everything using local salt # Set the repo @@ -93,9 +93,9 @@ analyst_salt_local() { 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 "salt-call state.apply workstation --local --file-root=../salt/ -l info" + logCmd "salt-call state.apply desktop --local --file-root=../salt/ -l info" read -r -d '' message <<- EOM - Finished Analyst workstation installation. + Finished Security Onion Desktop installation. Press the Enter key to reboot. EOM @@ -106,19 +106,20 @@ analyst_salt_local() { } -analyst_workstation_pillar() { +desktop_pillar() { local pillar_file=$local_salt_dir/pillar/minions/$MINION_ID.sls - # Create the analyst workstation pillar + # Create the desktop pillar printf '%s\n'\ "host:"\ " mainint: '$MNIC'"\ - "workstation:"\ + "desktop:"\ " gui:"\ " enabled: true" >> "$pillar_file"\ "sensoroni:"\ - " node_description: '${NODE_DESCRIPTION//\'/''}'" > $pillar_file + " config:"\ + " node_description: '${NODE_DESCRIPTION//\'/''}'" > $pillar_file } calculate_useable_cores() { @@ -603,8 +604,8 @@ collect_webuser_inputs() { configure_minion() { local minion_type=$1 - if [[ $is_analyst ]]; then - minion_type=workstation + if [[ $is_desktop ]]; then + minion_type=desktop fi info "Configuring minion type as $minion_type" echo "role: so-$minion_type" > /etc/salt/grains @@ -1585,7 +1586,7 @@ network_init() { title "Initializing Network" disable_ipv6 set_hostname - if [[ ( $is_iso || $is_analyst_iso ) ]]; then + if [[ ( $is_iso || $is_desktop_iso ) ]]; then set_management_interface fi } @@ -1697,9 +1698,9 @@ process_installtype() { is_import=true elif [ "$install_type" = 'RECEIVER' ]; then is_receiver=true - elif [ "$install_type" = 'ANALYST' ]; then - if [ "$setup_type" != 'analyst' ]; then - exec bash so-setup analyst + elif [ "$install_type" = 'DESKTOP' ]; then + if [ "$setup_type" != 'desktop' ]; then + exec bash so-setup desktop fi fi @@ -2107,10 +2108,10 @@ set_path() { set_minion_info() { short_name=$(echo "$HOSTNAME" | awk -F. '{print $1}') - if [[ $is_analyst ]]; then - MINION_ID=$(echo "${short_name}_workstation" | tr '[:upper:]' '[:lower:]') + if [[ $is_desktop ]]; then + MINION_ID=$(echo "${short_name}_desktop" | tr '[:upper:]' '[:lower:]') fi - if [[ ! $is_analyst ]]; then + if [[ ! $is_desktop ]]; then MINION_ID=$(echo "${short_name}_${install_type}" | tr '[:upper:]' '[:lower:]') fi export MINION_ID diff --git a/setup/so-setup b/setup/so-setup index 64654735b..355c8eea2 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -88,7 +88,7 @@ fi # Check to see if this is an desktop install. If it is let's run things differently if [[ $is_desktop ]]; then - title "This is an desktop workstation install" + title "This is a desktop install" # Make sure it's CentOS or Rocky Linux if [[ ! $is_rocky ]]; then