Hello,
in my logs I noticed deprecation warnings like this one:
Dynamic lookup of $VARIABLE at FILE:LINE is deprecated. For more
information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html.
To see the change in behavior, use the --debug flag.
Ok, I go to the URL, I can see the reasoning behind this. BUT!
In the code I do not use classes that trigger this warning, but defines.
Example that I would expect would trigger the warning above:
---------------------------------------------------------------------------------------
### File: module1/manifests/dir/file.pp
class module1::dir::file {
resource1 {...} # Uses $param3
resource2 {...}
resource3 {...}
}
### File: module2/manifests/something.pp
class module2::something {
$param3 = 'asdf'
include 'module1::dir::file'
}
----------------------------------------------------------------------------------------
Example below that I use (not with class inclusion, but with "define"s),
and it was not expected to trigger warning, because:
---------------------------------------------------------------------------------------
### File: module1/manifests/dir/file.pp
define module1::dir::file {
resource1 {...} # Uses $param3
resource2 {...}
resource3 {...}
}
### File: module2/manifests/something.pp
class module2::something {
$param3 = 'asdf'
module1::dir::file { "someName": param1=>1 }
}
----------------------------------------------------------------------------------------
Defines are not exempt to that deprecation? How come?
b.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/TYJCFw5F-joJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.