Works as expected

You have to use contain if version> 3.4 or anchor pattern
http://docs.puppetlabs.com/puppet/latest/reference/lang_containment.html
 El 19/03/2014 12:18, "David Portabella" <david.portabe...@gmail.com>
escribió:

> class { c2: }
> class { c3: }
>
> class c1 {
> }
>
> class c2 {
>   class { c1: }
> }
>
> class c3 {
>   require c2
> }
>
> c3 depends on c2 (as expected), but c3 does not depend on c1.
>
> this issue could be fixed by adding "require c1" inside c3.
>
> however, in a general case, I don't know what is instantiated inside c2.
> what is the proper way to tell c3 to depend on all classes and resources
> instantiated inside c2?
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/a227d80e-62fe-413e-bcb4-8d371fbb73b0%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/a227d80e-62fe-413e-bcb4-8d371fbb73b0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3ddkQRoDq1wbgRYu3Go1c%2B_DTDiti_Hnt6c%3DU%3DcNMgenWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to