Ah ! Having come across this before in my resource dependencies with
normal types (just correlating with some of the modules), this makes
it even clearer, thanks.

On Fri, Oct 12, 2012 at 4:19 AM, Stefan Schulte
<stefan.schu...@taunusstein.net> wrote:
> On Fri, Oct 12, 2012 at 03:49:48AM +0530, Mohit Chawla wrote:
>> Hi, it works with code like in your paste. But check this out :
>> http://pastie.org/5037832, the original situation I found myself in,
>> and you can see the "floating off" behaviour again.
>>
>
> Because you are saying that Class[abc] should be done *before*
> Class[wrapper] and Class[three,two,one] should also be done *before*
> Class[wrapper]. That does not imply any relationship between Class[abc]
> and Class[three,two,one].
>
> The example that was mentioned earlier does only work when you specify
> that Class[abc] depends on Class[wrapper] because then you define that
> Class[one,two,three] should run *before* Class[wrapper] and Class[abc]
> should run *after* Class[wrapper]. That does indeed imply a relationship
> between Class[one,two,three] and Class[abc].
>
> So to let your example work
>
>     class 'wrapper' {
>       include one,two,three
>
>       Class['wrapper']->Class['one']
>       Class['wrapper']->Class['two']
>       Class['wrapper']->Class['three']
>     }
>
>     class 'abc' {
>     }
>
>     class 'xyz' {
>       include abc
>       include wrapper
>       Class['abc']->Class['wrapper']
>     }
>
> -Stefan
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to