Issue #17687 has been updated by Lee Lowder. Status changed from Unreviewed to Investigating Assignee set to Lee Lowder
This seems to be a scope conflict related to both node and "top" scope being essentially top scope and one needing to give way to the other. ---------------------------------------- Bug #17687: Variables not accessible if classname is same as node name https://projects.puppetlabs.com/issues/17687#change-82550 Author: Lee Lowder Status: Investigating Priority: Normal Assignee: Lee Lowder Category: language Target version: Affected Puppet version: 2.7.19 Keywords: Branch: While poking around at #1372 I came across a workaround, when then lead to the discovery of this one. llowder@ubuntu:~$ cat bugtest.pp class ubuntu { $foo = "bar" notice ("Class ubuntu") } node 'ubuntu' { class { 'ubuntu': } #include ::ubuntu notice ("Node ubuntu") notice ("class::ubuntu::foo is ${ubuntu::foo}") } #class { 'ubuntu': } llowder@ubuntu:~$ puppet apply --verbose bugtest.pp notice: Scope(Node[ubuntu]): Node ubuntu notice: Scope(Node[ubuntu]): class::ubuntu::foo is notice: Scope(Class[Ubuntu]): Class ubuntu info: Applying configuration version '1353018559' notice: Finished catalog run in 0.02 seconds -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
