Hello everybody, we are currently trying to port our Icinga2 configuration from using configs to using the Director.
At the moment I am trying to configure a Service Apply rule which populates a custom field value with a variable from a host. Using config files, this would be as easy as saying
vars.custom_service_field = host.vars.custom_host_field
But how can I achieve this using the Director, since you can’t define custom field values to be “variables”, only strings. Every input I tried so far, be it
$host.vars.custom_host_field$ or just
host.vars.custom_host_field got wrapped with
"" and was used as a literal string.