Hello everyone,
during my server deployment, I want to add a tag in vmware, for this I need to retrieve the value of the tag that I indicated during my deployment in the host_paramater part, I configured a webhook template to retrieve the variable
<%=
payload({
"name": @object.name,
"token": @object.token,
"ip": @object.ip,
"param1": @object.host_param('value_of_param_1')
}, with_defaults: false)
-%>
the value returns nothing to me even though the host parameter is correctly set
production.log :
Enqueued ForemanWebhooks::DeliverWebhookJob (Job ID: 96f2daa9-6418-4da4-95b8-3cb6fec6fac3) to Dynflow(default) with arguments: {:event_name=>"host_created.event.foreman", :payload=>"{\"name\":\"myserver.domain\",\"token\":{\"id\":XX,\"value\":\"baad9276-9258-4028-9e06-cccc\",\"expires\":\"2025-01-13T20:51:04.099+01:00\",\"host_id\":91},\"ip\":\"xxx.xxx.xxx.xxx\",\"param1\":\"\"}", :headers=>nil, :url=>"https://urlforeman:9090/shellhook/test", :webhook_id=>2}
how can i retrieve this value, Thank
Foreman and Proxy versions: 3.12.0
Foreman and Proxy plugin versions: 3.12.0
Distribution and version: RHEL 9.5