What I'm asking about is hopefully something that Foreman already does and
I'm sure some of you have a similar solution ot the problem I'm describing
here. I have a 3rd party inventory management system that accepts API
calls to add|delete|change devices that it is responsible for keeping track
of. I would like to get Foreman to do the following two things:
- When I click 'submit' upon adding a new host or provisioning a
discovered host, I would like Foreman to wget or curl (or some other
ruby-way of doing this) a URL with the API call, and plug in variables to
- When I click 'delete' on a host, I would like Foreman to again send
an API call, plugging in variables where appropriate.
Since I am developing the solution, https posts are not required, it's just
the easiest way I think it can be done.
Thanks, and all ideas are welcome to help me noodle this out!