Replace hardcoded URL in so-analyst-install with new $DOC_BASE_URL variable from so-common

This commit is contained in:
Doug Burks
2022-12-19 10:30:29 -05:00
committed by GitHub
parent 73f2789c95
commit df1b564d17

View File

@@ -6,13 +6,13 @@
# Elastic License 2.0.
doc_workstation_url="https://docs.securityonion.net/en/2.4/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="$DOC_BASE_URL/analyst-vm.html"
pillar_file="/opt/so/saltstack/local/pillar/minions/{{grains.id}}.sls"
if [ -f "$pillar_file" ]; then