Hi,
This is for me and also for all the other people that are searching for how to use custom defined types in Hiera
In my case i wanted to activate the HTTP endpoint of Jolokia using custom hostname and standard port. And for that it was sufficient to add in my host yaml the following lines
profiles::kafka::jolokia: "-javaagent:/usr/share/java/jolokia-jvm-agent.jar=port=8778,host=%{::networking.fqdn}"
This contains the standard fact called networking, which is a hash, and i am using the key that is called fqdn.
And it works.
Cheers