echo "Calling API to report successful host deployment"
yum install -y curl ca-certificates
curl -X POST \
-H "Content-Type: application/json" \
-d '{"name": "<%= @host.name %>", "operating_system": "<%= @host.operatingsystem.name %>", "status": "provisioned",}' \
"https://api.example.com/"
echo "Calling API to report successful host deployment"
yum install -y curl ca-certificates
curl -X POST \
-H "Content-Type: application/json" \
-d '{"name": "<%= @host.name %>", "operating_system": "<%= @host.operatingsystem.name %>", "status": "provisioned",}' \
"https://api.example.com/"
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow