Issue #5673 has been updated by Robin Bowes.

I suspect I may have hit this bug as well.

I want to apply my yum class before all other classes so I've created a "first" 
run stage (runs before "main") and I try and run my yum class in the first 
stage using class { yum: stage => first }. But, when I run the manifest I get 
the "Found dependency cycles" msg. I believe this is because my yum class 
includes a bunch of yum repositories all based on a couple of custom defines 
(wrappers around the yumrepo type).

Is this an easy fix, or likely to be more involved?

R.
----------------------------------------
Bug #5673: defines are always processed after classes
https://projects.puppetlabs.com/issues/5673

Author: Yuri Arabadji
Status: Needs more information
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.4
Keywords: defines,execution order
Branch: 


It's fine when you want to do processing on agent, but what if you require 
dependencies on master? 

The test case follows:

<pre>
define firstdef {
        notice("Define: first.")
}
define seconddef {
        notice("Define: second.")
}

class first {
        notice("Class: first.")
        firstdef {'firstdef_rsrc': }
}
class second {
        notice("Class: second.")
        seconddef { 'seconddef_rsrc': }
}

node 'default' {
        include first 
        include second 
}
</pre>   
No matter what you do, the output is always:
<pre>
notice: Scope(Class[First]): Class: first.
notice: Scope(Class[Second]): Class: second.
notice: Scope(Firstdef[firstdef_rsrc]): Define: first.
notice: Scope(Seconddef[seconddef_rsrc]): Define: second.
</pre>

It would be cool to have the graph engine actually work for you on master, too. 
The reason is proper templating.

Thank you.



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