mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Correct placeholder subbing for Kibana
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{%- set MASTER = salt['pillar.get']('static:masterip', '') %}
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
{%- set MASTER = salt['pillar.get']('static:masterip', '') %}
|
||||||
KIBANA_VERSION="7.6.1"
|
KIBANA_VERSION="7.6.1"
|
||||||
MAX_WAIT=120
|
MAX_WAIT=120
|
||||||
|
|
||||||
@@ -17,22 +18,10 @@ done
|
|||||||
# Sleep additional JIC server is not ready
|
# Sleep additional JIC server is not ready
|
||||||
sleep 30s
|
sleep 30s
|
||||||
|
|
||||||
# Load config
|
# Sub our IP for placeholders
|
||||||
#curl -X PUT "localhost:5601/api/saved_objects/config/$KIBANA_VERSION" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
|
cp /opt/so/conf/kibana/saved_objects.ndjson.template /opt/so/conf/kibana/saved_objects.ndjson
|
||||||
#{ "attributes":
|
|
||||||
# {
|
|
||||||
# "defaultIndex": "2289a0c0-6970-11ea-a0cd-ffa0f6a1bc29",
|
|
||||||
# "defaultRoute":"/app/kibana#/dashboard/a8411b30-6d03-11ea-b301-3d6c35840645",
|
|
||||||
# "discover:sampleSize":"100",
|
|
||||||
# "dashboard:defaultDarkTheme":true,
|
|
||||||
# "theme:darkMode":true,
|
|
||||||
# "timepicker:timeDefaults":"{\n \"from\": \"now-24h\",\n \"to\": \"now\",\n \"mode\": \"quick\"\n}"
|
|
||||||
# }
|
|
||||||
#}'
|
|
||||||
|
|
||||||
# Sub our IP for placholders
|
|
||||||
for i in FLEETPLACEHOLDER PCAPPLACEHOLDER SOCTOPUSPLACEHOLDER PLACEHOLDER; do
|
for i in FLEETPLACEHOLDER PCAPPLACEHOLDER SOCTOPUSPLACEHOLDER PLACEHOLDER; do
|
||||||
sed "s/$i/{{ MASTER }}/g" /opt/so/conf/kibana/saved_objects.ndjson.template > /opt/so/conf/kibana/saved_objects.ndjson
|
sed -i "s/$i/{{ MASTER }}/g" /opt/so/conf/kibana/saved_objects.ndjson
|
||||||
done
|
done
|
||||||
|
|
||||||
# Load saved objects
|
# Load saved objects
|
||||||
|
|||||||
Reference in New Issue
Block a user