added warning about installing and ensure can only install workstation on centos

This commit is contained in:
m0duspwnens
2022-04-13 13:39:48 -04:00
parent 6477e6c5a2
commit 3ee09db752
5 changed files with 54 additions and 9 deletions

View File

@@ -14,13 +14,14 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
{# we only want the script to install the workstation if it is CentOS #}
doc_workstation_url="https://docs.securityonion.net/en/2.3/analyst-vm.html"
{# we only want the script to install the workstation if it is CentOS -#}
{% if grains.os == 'CentOS' -%}
{# if this is a manager -#}
{% if grains.master == grains.id.split('_')|first -%}
source /usr/sbin/so-common
doc_workstation_url="https://docs.securityonion.net/en/2.3/analyst-vm.html"
pillar_file="/opt/so/saltstack/local/pillar/minions/{{grains.id}}.sls"
if [ -f "$pillar_file" ]; then
@@ -51,7 +52,7 @@ if [ -f "$pillar_file" ]; then
echo "Exiting analyst node installation."
exit 0
fi
# Add workstation pillar to the minion's pillar file
printf '%s\n'\
"workstation:"\