Foreman and Hiera

So I've finally started working on Hiera, I have not upgraded to Puppet
3.x. So far the 2.7 branch works well for me.
SO i have everything setup, but I am trying to get Foreman to pull
facts/data from Hiera.
So I start with the simple Puppetlabs NTP nodule.

This command from the command line works:

[root@foreman ~]# hiera 'ntp::servers'
["0.pool.ntp.org",
"1.pool.ntp.org",
"2.pool.ntp.org",
"3.pool.ntp.org"]

However I am clueless on how to plug this into the Foreman ENC under the
classes/parameters tab.

According to the Puppetdocs setting:

$SOMEVARNAME = hiera('ntp::servers')

Is the way to go if you are just running puppet with no ENC.

In the logs I am getting:
Aug 30 12:16:14 foreman puppet-master[10695]: "${hiera::ntp::servers}" is
not an Array. It looks to be a String at
/etc/puppet/environments/common/ntp/manifests/init.pp:40 on node
server00.localhost.com

Anyone here working with Hiera AND Foreman, that can provide some insight?

R

I've been poking around and found reference to:

"hiera data assigned to hostgroup, so machine cannot assert membership",
found as part of a CERN presentation. The doc can be found here
<http://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB0QFjAA&url=http%3A%2F%2Fcern.ch%2Fgo%2F99Ql&ei=mLIDVKHsN4-A8QXIlIDADQ&usg=AFQjCNF9dWwJl3EdZqqRm8ruhvNI1gpl3A&sig2=RXFDAcMRD9NMyb_C0hCzdw>
.

So now I am off to see how I can link foreman hostgroups to something in
hiera.

R