Issue #2105 has been updated by James Turnbull.

Target version deleted (unplanned)


----------------------------------------
Bug #2105: Order matters with tagged function
https://projects.puppetlabs.com/issues/2105

Author: Lawrence Ludwig
Status: Accepted
Priority: Normal
Assignee: 
Category: documentation
Target version: 
Affected Puppet version: 0.24.8
Keywords: 
Branch: 


It should be noted in the documentation of the limits when using the 'tagged' 
function ordering of classes via 'include' matters.  Ie this code.

code:
<pre>
class a {
    notify {"class a": }
    if tagged("b") {
        notify {"found class b": }
    }
}

class b {
    notify {"class b": }
}

class test {
    notify {"class test": }
    include a
    include b
}

</pre>

test output:
<pre>
[root@bast ~]# puppet -e "include test" test.pp  --verbose --logdest=console 
--debug
debug: importing '/home/larry/test.pp'
info: Autoloaded module test
debug: Creating default schedules
debug: //test/a/Notify[class a]: Changing message
debug: //test/a/Notify[class a]: 1 change(s)
notice: class a
notice: //test/a/Notify[class a]/message: defined 'message' as 'class a'
debug: //test/Notify[class test]: Changing message
debug: //test/Notify[class test]: 1 change(s)
notice: class test
notice: //test/Notify[class test]/message: defined 'message' as 'class test'
debug: //test/b/Notify[class b]: Changing message
debug: //test/b/Notify[class b]: 1 change(s)
notice: class b
notice: //test/b/Notify[class b]/message: defined 'message' as 'class b'
debug: Finishing transaction 70131190151540 with 3 changes
</pre>


will only output "found class b" when the order of includes is reversed.







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

Reply via email to