Issue #23278 has been reported by Pablo Llopis.

----------------------------------------
Bug #23278: Ordering with chaining arrows and collectors is not working
https://projects.puppetlabs.com/issues/23278

* Author: Pablo Llopis
* Status: Unreviewed
* Priority: High
* Assignee: 
* Category: agent
* Target version: 
* Affected Puppet version: 3.3.2
* Keywords: 
* Branch: 
----------------------------------------
Consider the following scenario: An anchor that marks the start of a class 
needs to have ordering statements so the Anchor is processed before any package 
in that class.

According to the lang docs, tags section, <a 
href="http://docs.puppetlabs.com/puppet/3/reference/lang_tags.html#automatic-tagging";>resources
 are automatically tagged with the class name</a>:

<pre>Every resource automatically receives the following tags:
<li> Its resource type
<li> The full name of the class and/or defined type in which the resource was 
declared
<li> Every namespace segment of the resource’s class and/or defined type
</pre>

Therefore, it would make sense to use the following code to establish ordering 
relationships between start anchors and class resources:
<pre><code>
class testmod {
  anchor { 'testmod::begin': }

  Anchor['testmod::begin'] -> Package <| tag == 'testmod' |>

  package { 'htop': }
  package { 'vim': }
}
</code></pre>

However, the outcome is that the expressed order relationship is missing. For 
this example class, using Puppet version:3.2.2, I get the following dot file 
generated by Puppet, which clearly shows that the DAG is missing the connection 
between the Anchor and the package resources: <a 
href="http://pastebin.ca/2478032";>http://pastebin.ca/2478032</a>

This, of course, unfortunately results in broken puppet runs. (Or worse, you 
are lucky and don't get broken runs during tests) 


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to