You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
magnum/magnum/templates/swarm/fragments/cfn-signal.sh

16 lines
324 B

#!/bin/sh
. /etc/sysconfig/heat-params
echo "notifying heat"
STATUS="SUCCESS"
REASON="Setup complete"
DATA="OK"
data=$(echo '{"Status": "'${STATUS}'", "Reason": "'$REASON'", "Data": "'${DATA}'", "UniqueId": "00000"}')
curl -sf -X PUT -H 'Content-Type: application/json' \
--data-binary "$data" \
"$WAIT_HANDLE"