hiera cli and hiera in puppet use two different config files. So does puppet
apply -e 'notice(hiera("test2"))' work as expected for you?On 3 December 2013 09:39, Ger Apeldoorn <[email protected]> wrote: > 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. > -- Erik Dalén -- 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/CAAAzDLcTde3ZHMhxy7Pj7-990nCSFCXr70%2BfYBa8z9Xn%3DTSZ4w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
