David K. Bainbridge | f307101 | 2016-08-04 09:29:55 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
David K. Bainbridge | a677d4e | 2016-09-11 20:01:32 -0700 | [diff] [blame^] | 3 | LIST=$(curl -sS http://$(docker-ip provisioner):4243/provision/ | jq . | grep "node-" | awk '{print $2}' | sed -e 's/[",]//g') |
David K. Bainbridge | f307101 | 2016-08-04 09:29:55 -0700 | [diff] [blame] | 4 | |
5 | for i in $LIST; do | ||||
6 | echo "DELETE PROV RECORD '$i'" | ||||
7 | curl -sS -XDELETE http://$(docker-ip provisioner):4243/provision/$i | ||||
8 | done | ||||
9 |