Make pivot condition independent for ENDGAMEHOST

This commit is contained in:
weslambert
2021-11-12 12:06:39 -05:00
committed by GitHub
parent 86a42addf0
commit 3cd1b5687e

View File

@@ -1,4 +1,4 @@
{% set HIGHLANDER = salt['pillar.get']('global:highlander', False) %} {%- set ENDGAMEHOST = salt['pillar.get']('soc:endgamehost', False) %}
[ [
{ "name": "actionHunt", "description": "actionHuntHelp", "icon": "fa-crosshairs", "target": "", { "name": "actionHunt", "description": "actionHuntHelp", "icon": "fa-crosshairs", "target": "",
"links": [ "links": [
@@ -31,11 +31,10 @@
"links": [ "links": [
"https://www.virustotal.com/gui/search/{value}" "https://www.virustotal.com/gui/search/{value}"
]} ]}
{%- if HIGHLANDER %} {%- if ENDGAMEGHOST %}
{%- set EGHOST = salt['pillar.get']('soc:endgamehost', 'EGHOSTNOTPOPULATED') %}
,{ "name": "Endgame", "description": "Endgame Endpoint Investigation and Response", "icon": "fa-external-link-alt", "target": "_blank", ,{ "name": "Endgame", "description": "Endgame Endpoint Investigation and Response", "icon": "fa-external-link-alt", "target": "_blank",
"links": [ "links": [
"https://{{ EGHOST }}/endpoints/{:agent.id}" "https://{{ ENDGAMEHOST }}/endpoints/{:agent.id}"
]} ]}
{% endif %} {% endif %}
] ]