Problem:
I am wanting to use Foreman Hooks to orchestrate an event (add entry to a load balancer) upon creation of the host.
Obviously, I am wanting to do this only for specific Hosts that are created within a hostgroup for a load balanced application.
How would I configure Foreman to do this? From what I understand - Foreman Hooks will perform these orchestration events on every host - rather than just specific ones in a hostgroup. Is this correct?
Expected outcome:
Execute a shell script to add a line to my apache load balancer configuration for hosts tied to a specific hostgroup.
Foreman and Proxy versions:
Version 3.5.1
Foreman and Proxy plugin versions:
Version 3.5.1
Distribution and version:
CentOS Stream 8
Other relevant data: