How to use puppet facter in foreman

I would like to ask how to refer to the facts variable of puppet when the foreman console is configured with yaml
For example
domian: abc.com
puppet code: service.${::domian}
foreman yaml: service.(?)