mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
13 lines
423 B
Plaintext
13 lines
423 B
Plaintext
{%- set ip = salt['pillar.get']('global:managerip', '') -%}
|
|
#!/bin/bash
|
|
default_salt_dir=/opt/so/saltstack/default
|
|
|
|
echo "Waiting for connection"
|
|
until $(curl --output /dev/null --silent --head -L http://{{ ip }}:1880); do
|
|
echo '.'
|
|
sleep 1
|
|
done
|
|
echo "Loading flows..."
|
|
curl -XPOST -v -H "Content-Type: application/json" -d @$default_salt_dir/salt/nodered/so_flows.json -L {{ ip }}:1880/flows
|
|
echo "Done loading..."
|