Discovered host doesn’t call the “create” hook when provisioned.
Discovered host should call the “create” hook when provisioned
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
discovery v16.0.1, hooks v0.3.16
Distribution and version:
Other relevant data:
When I manually create a host the host/managed/create hook gets called as expected, but when I provision a host from discovery it does not call the create hook. Is there a way to see what rails events get called during the provisioning process?
It should be an “edit” hook instead.
We are completely redesigning hooks in the current sprint, it will be MUCH better
Got it. Is there a way to log when a rails event is called so I can see what gets called when during our deployment processes and have appropriate hooks in place? Or is the redesign happening soon enough that that would be a waste of effort?
You can use the edit event and probably use some data to determine if that’s discovery provisioning. But it’s complicated. This brings an interesting point - we should definitely make sure that there is now a new event available when discovered host is provisioned and also registered. We don’t have this in our current design: