add files back

This commit is contained in:
Wes Lambert
2020-03-06 17:28:05 +00:00
parent 1b667b9cb9
commit ed8adcae5a
2 changed files with 15 additions and 0 deletions

View 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..."

File diff suppressed because one or more lines are too long