Issue #8174 has been updated by Andrew Parker.
Could you provide an example? I just tried it out and it seems to be working
correctly.
I'm using the same enc as I had above with a `scoping.pp` file:
<pre>
define b() {
notify { $hostname: }
notify { $enc_var: }
notify { $dynamic: }
}
class a {
$dynamic = "dynamic"
b { "testing": }
}
</pre>
Results in output from `puppet apply scoping.pp`:
<pre>
warning: Dynamic lookup of $dynamic at /Users/andy/tmp/scoping.pp:4 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.
notice: dynamic
notice: /Stage[main]/A/B[testing]/Notify[dynamic]/message: defined 'message' as
'dynamic'
notice: Set from ENC.
notice: /Stage[main]/A/B[testing]/Notify[Set from ENC.]/message: defined
'message' as 'Set from ENC.'
notice: aparker
notice: /Stage[main]/A/B[testing]/Notify[aparker]/message: defined 'message' as
'aparker'
notice: Finished catalog run in 0.03 seconds
</pre>
I also tried this with `b` being in a module on the modulepath and got the same
result.
----------------------------------------
Bug #8174: External Node Classifer makes puppet think Facter variables are
dynamic lookup issues
https://projects.puppetlabs.com/issues/8174#change-62765
Author: Chuck Schweizer
Status: Merged - Pending Release
Priority: Normal
Assignee: Andrew Parker
Category:
Target version: 2.7.14
Affected Puppet version: 2.7.1
Keywords:
Branch: https://github.com/puppetlabs/puppet/pull/657
I have found that if your class is part of the External Node Classifier
definition puppet 2.7.1 thinks variables from Facter are dynamic lookups.
EG.
External config
---
classes:
- hadoop
environment: production
parameters:
puppetmaster: puppet
Dynamic lookup of $operatingsystem at
/var/opt/puppet/environments/production/modules/hadoop/manifests/base.pp:53 is
deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified
variable name (e.g., $classname::variable) or parameterized classes.
$ facter operatingsystem
RedHat
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
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-bugs?hl=en.