Satellite 6 and hiera call within puppet module
Hi all,
I am looking for a little clarification on the hiera calls. I am running Sat6 server v. 6.0.4 . I'm having simple custom made notify_me module imported into SAT6 with one single hiera call. Hiera is configured correctly on the server and by running test hiera call from command line I'm getting correct value.
[root@rhns6]# hiera msg fqdn=node1.local
Test string - HIERA NODE1
I did all settings - Product( with puppet repo) Content view Live cycle and so on .... and finally I have one single module assigned to node1 without any smart parameters or variables.
But when I run puppet agent on node1 I am still gettinng the default value from hiera call.
class notify_me
{
$msg=hiera("msg"',"Default from class file")
notify {"TEST CLASS : $msg":}
}
node1.local:
...
info: Applying configuration version '1416339193'
Notice: TEST CLASS : Default from class file
So my question is : Is it supported scenario ? Can I use hiera calls in puppet modules with SAT6 working as a ENC ? Am I missing something important ?
Thanks,
Jan
Responses