Create a foreman_hooks smart proxy plugin
It would be great to be able to run custom scripts on a smart proxy as well, this is particularly useful in environments where clients that cannot connect directly to the foreman server.
E.g. you have a hook that when you create a host it connects to the servers iLO to configure it first. If the foreman server cannot connect directly to the iLO this useless, running the script from the smart proxy would be a better solution, especially in situations where you have proxies all over the world.