On May 24, 12:56 pm, Yushu Yao <y...@lbl.gov> wrote: > Thanks Patrick! > > On Tue, May 24, 2011 at 10:28 AM, Patrick <kc7...@gmail.com> wrote: > > > On May 24, 2011, at 10:03 AM, Yushu Yao wrote: > > > > (For dependency reason I have to apply the above 3 service sets in 3 > > separate steps, and webserver need proxy, and gmond need webserver, for > > example) > > > So, why can't you just create three classes, one for each service. Then > > have each class require the one before it so the dependencies happen in the > > right order? > > Because I have inter-node dependency. I.e. webserver might depend on mysql > server that's on another node (puppet client), while mysql server at the > same time need proxy server. > > Sorry if I'm being too confusing :-)
Do not confuse functional dependency with configuration dependency. Only the latter need affect your Puppet manifests. For example, although your webserver may not function correctly until your mysql server is configured and running, you can probably apply the configuration it's going to need whether the mysql server is up and configured or not. Dependencies matter to Puppet exactly to the extent that they affect whether and how configurations can be applied to particular nodes. More often than not, your manifests don't need to do anything special about inter-node dependencies (beyond specifying each node's individual configuration). John -- 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.