Run a script on Satellite Server when Client installation is finished ...

Latest response

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.

[1] 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

thanks guys !

I am going to check the Foreman Hooks. Sounds like what I was looking for ...

And for Satellite 6.3 it has ended up in Chapter 11.

Administering Red Hat Satellite - Chapter 11. Customizing Satellite Server - 11.2. Using Foreman Hooks

I don't think there's much changed, but small details, maybe.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.