Hi,
i've jsut added a new client to my puppet 4.6 master. The Client retrieves the catalog and also connection is all fine.
In the mail manifest i'll try to use a variable
$test = hiera('testvar')
notify {"VAR = $test": }
the var is stored in hieradata/net/192.168.1.0.yaml (which works fine for other nets...)
---
testvar: 'foobar'
my /etc/hiera.yaml hierachy looks like:
:hierarchy:
- "node/%{::clientcert}"
- "lsbdist/%{::lsbdistcodename}"
- "net/%{::network_eth0}"
- "common"
now if I do a lookup on the master, I see:
$> puppet lookup --node testnode.domain.com --debug testvar
[...]
Debug: hiera(): Found testvar in net/192.168.1.0
--- 'foobar'
But the puppet run on the client shows:
Notice: /Stage[main].../Notify[VAR = ]/message: defined 'message' as 'VAR = '
I'm out of Ideas what can cause this problem, since it's working fine with the same manifest, the same variable for other networks.
↧