Migrating from Hiera to Foreman

Hi'

I was running Puppet with Hiera as ENC, and would like to migrate to
Foreman.

Is there best practices for that ?

How can I manage hiera_hash and hiera_array ?

How can "create_ressources" ?