mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-14 13:12:49 +01:00
add files back
This commit is contained in:
11
salt/nodered/files/nodered_load_flows
Normal file
11
salt/nodered/files/nodered_load_flows
Normal file
@@ -0,0 +1,11 @@
|
||||
{%- set ip = salt['pillar.get']('static:masterip', '') -%}
|
||||
#!/bin/bash
|
||||
|
||||
echo "Waiting for connection"
|
||||
until $(curl --output /dev/null --silent --head http://{{ ip }}:1880); do
|
||||
echo '.'
|
||||
sleep 1
|
||||
done
|
||||
echo "Loading flows..."
|
||||
curl -XPOST -v -H "Content-Type: application/json" -d @/opt/so/saltstack/salt/nodered/so_flows.json {{ ip }}:1880/flows
|
||||
echo "Done loading..."
|
||||
4
salt/nodered/files/so_flows.json
Normal file
4
salt/nodered/files/so_flows.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user