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