We're having some issues with the implementation of this feature-request:
https://projects.puppetlabs.com/issues/21367
We are using a Puppet setup with foreman.
Versions:
- puppet 3.3.2
- hiera 1.3.0
- CentOS release 6.4
I have got this in common.yaml
---
test1: "test1 -> %{hiera('test2')}"
test2: Dit is test2
When I do a Hiera call for test1 on the CLI, it works as expected:
#hiera -c /etc/puppet/hiera.yaml test1
test1 -> Dit is test2
However, if I try to use this from within Puppet, the %{hiera('test2')} is
replaced by a blank.
#puppet apply -e 'notice(hiera("test1"))'
Notice: Scope(Class[main]): test1 ->
Also with a full Puppet run:
# puppet agent -t --environment devrepo
*snip*
Notice: test1 ->
Notice: /Stage[main]//Node[default]/Notify[test1 -> ]/message: defined
'message' as 'test1 -> '
Notice: Finished catalog run in 4.60 seconds
I would expect that the CLI would yield the same results as the call from
within Puppet.
Any ideas?
Thanks,
Ger.
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/bcfd309b-01a2-4e3e-b444-efae8f65ffe9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.