I still don't understand much the anchor pattern. could you please modify the previous example to use the anchor pattern?
On Wednesday, March 19, 2014 12:22:31 PM UTC+1, Jose Luis Ledesma wrote: > > 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" <[email protected]<javascript:>> > 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 [email protected] <javascript:>. >> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9b80da07-5ac0-439f-9257-042c59efcb6c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
