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
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
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
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