Run a script on Satellite Server when Client installation is finished ...
Hi There,
I am looking for a way to run/trigger a script on the satellite server when a client installation/setup/provisioning has finished.
Like a post installation script that runs on the satellite server.
I have seen the "Provisioning Templates" but they run on the client itself.
Thanks for your help
David
Responses
Something like this?
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/server_administration_guide/sect-red_hat_satellite-server_administration_guide-red_hat_satellite_foreman_hooks
If Foreman Hooks aren't your thing
We needed the same thing. Ended up writing a cgi script that the client curls when the post is finished (similar to the notify at the end of the kickstart) . That cgi makes a few API calls back to satellite to do whatever else we need. Not as fancy as Foreman Hooks, but it works :)
David,
I encourage you to consider the Foreman hooks functionality suggested by Lesley. The method suggested by Will sounds interesting, but I think the Foreman hook method might suit you better. Also, the Foreman hooks method is intended for just this purpose.
The Satellite 6.2 Server Administration Guide, linked to by Lesley, provides an example of additional logging which is done when a new host is provisioned from Satellite.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
