Keith Edmunds wrote: >> You can depend on a class: >> >> require => Class[thatclass], >> before => Class[thatotherclass] > > But can I cause a module (or class) to depend on a class? If so, I can't > find the correct syntax.
No. You need to let individual resources within that class or module depend on the other class. Luckily, one often already has a dependency chain within that class, so you only need to add dependencies to a few of those resources. If you, e.g, have: class x { ... } class y { t1 { r1: ...; } t2 { r2: ..., require => T1[r1]; } t3 { r3: ..., require => T2[r2]; } ... t17 { r17: ..., require => T16[r16]; } } and want all of the resources in class y to depend on class x, you only need to add a 'require => Class[x]' to the r1 resource, since all of r2..r17 already require r1. /Bellman --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---