Get foreman node parrameters in hiera

Hi,

How hiera (or puppet) can get foreman parameters like "foreman_env" or
organization as a hiera variable ?

motd::text: "This how belongs to %{hiera('organization')}."

I can come up with some solution with defining a fact on node but is there
a more direct way?

Regards,