Hi everyone,
I’m wondering if it’s possible to access host facts from a webhook template on host_update
or build_entered
events?
Using the default payload, I was able to query @object
, but I’m unsure how to access detailed facts for the host in these events.
Problem:
How can I include or query host facts in the webhook template for these specific events?
Expected outcome:
Ability to access and include host facts in the webhook payload when host_update
or build_entered
events are triggered.
Foreman and Proxy versions:
foreman 3.13.0-1+ubuntu2204
foreman-cli 3.13.0-1+ubuntu2204
foreman-debug 3.13.0-1+ubuntu2204
foreman-dynflow-sidekiq 3.13.0-1+ubuntu2204
foreman-postgresql 3.13.0-1+ubuntu2204
foreman-proxy 3.13.0-1+ubuntu2204
foreman-redis 3.13.0-1+ubuntu2204
foreman-service 3.13.0-1+ubuntu2204
foreman-telemetry 3.13.0-1+ubuntu2204
ruby-foreman-discovery 25.0.0-1
ruby-foreman-webhooks 4.0.0-1
ruby-hammer-cli-foreman 3.13.0-1
Other relevant data: