adding api key for Helix

This commit is contained in:
m0duspwnens
2019-12-09 09:59:28 -05:00
parent 362cd0487f
commit 599341483e

View File

@@ -1,10 +1,5 @@
{%- if salt['grains.get']('role') == 'so-master' %} {% set helix_api_key = salt['pillar.get']('fireeye:helix:api_key', '') %}
{% set master = salt['pillar.get']('static:masterip', '') %}
{%- set nodetype = 'master' %}
{%- else %}
{%- set nodetype = salt['pillar.get']('node:node_type', 'storage') %}
{% set master = salt['pillar.get']('static:masterip', '') %}
{%- endif %}
filter { filter {
if "fe_clone" in [type] { if "fe_clone" in [type] {
grok { grok {
@@ -105,7 +100,7 @@ output {
url => "https://helix-integrations.cloud.aws.apps.fireeye.com/api/upload?source=test&format=json" url => "https://helix-integrations.cloud.aws.apps.fireeye.com/api/upload?source=test&format=json"
http_method => post http_method => post
http_compression => true http_compression => true
headers => ["Authorization", "{{ HELIXAPIKEY }}"] headers => ["Authorization", "{{ helix_api_key }}"]
format => json_batch format => json_batch
} }
} }