Merge pull request #713 from Security-Onion-Solutions/fix/kibana_config_load

change KRATOS to MASTER
This commit is contained in:
weslambert
2020-05-16 13:07:24 -04:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
# {%- set FLEET_NODE = salt['pillar.get']('static:fleet_node') %}
# {%- set FLEET = salt['pillar.get']('static:fleet_ip', '') %}
# {%- set KRATOS = salt['pillar.get']('kratos:redirect', '') %}
# {%- set MASTER = salt['pillar.get']('kratos:redirect', '') %}
KIBANA_VERSION="7.6.1"
@@ -15,10 +15,10 @@ sed -i "s/FLEETPLACEHOLDER/{{ FLEET }}/g" /opt/so/conf/kibana/saved_objects.ndjs
# {% endif %}
# Kratos redirect
sed -i "s/PCAPPLACEHOLDER/{{ KRATOS }}/g" /opt/so/conf/kibana/saved_objects.ndjson
#sed -i "s/PCAPPLACEHOLDER/{{ KRATOS }}/g" /opt/so/conf/kibana/saved_objects.ndjson
# SOCtopus and Master
sed -i "s/PLACEHOLDER/{{ KRATOS }}/g" /opt/so/conf/kibana/saved_objects.ndjson
sed -i "s/PLACEHOLDER/{{ MASTER }}/g" /opt/so/conf/kibana/saved_objects.ndjson
# Load saved objects
curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form file=@/opt/so/conf/kibana/saved_objects.ndjson > /dev/null 2>&1

File diff suppressed because one or more lines are too long