Re: [Puppet Users] Re: Hiera value not being passed

2019-10-03 Thread Henrik Lindberg
On 2019-10-04 00:47, Jagga Soorma wrote: Thanks Henrik.  However, changing my code to do the following still shows that warning: -- class foo ( $nodetype = lookup('nodetype') ){ ..blah.. } You are missing that "automatic" in "automatic parameter lookup" means that it does this for you - no

Re: [Puppet Users] Re: Hiera value not being passed

2019-10-03 Thread Jagga Soorma
Thanks Henrik. However, changing my code to do the following still shows that warning: -- class foo ( $nodetype = lookup('nodetype') ){ ..blah.. } # puppet apply --hiera_config=/root/test/puppetlabs/code/environments/production/hiera.yaml --modulepath /root/test/puppetlabs/code/environments/p

Re: [Puppet Users] Re: Hiera value not being passed

2019-10-03 Thread Henrik Lindberg
On 2019-10-02 23:21, Jagga Soorma wrote: Looks like I figured it out. I was passing the hiera variable incorrectly. Changed from passing in to class String $nodetype, to $nodetype=hiera('nodetype') Note that all functions starting with "hiera" are deprecated. Use the "lookup()" function in

[Puppet Users] Re: Hiera value not being passed

2019-10-02 Thread Jagga Soorma
Looks like I figured it out. I was passing the hiera variable incorrectly. Changed from passing in to class String $nodetype, to $nodetype=hiera('nodetype') that seems to have done the trick. On Wed, Oct 2, 2019 at 1:39 PM Jagga Soorma wrote: > > Hello, > > I am testing out hiera and trying t