Running commands within provisioning process

Problem: I’m searching for a solution to run a curl command when the provisioning of a host is done.

Also it would be great to run a command when a build has failed.

Is there a logic in Foreman to do something like this?

Foreman and Proxy versions: 1.23.1

Distribution and version: Ubuntu 16

However we are currently in the middle of replacing this with something more robust. This plugin will continue to work for some time tho, so feel free to use it. It’s a bit clunky tho, you will have to figure out the payload.