Thanks John,

My case is a little bit different. Because my webserver might need the IP
address of the mysql node, and before mysql node is deployed and configured,
it's IP address is not known.

-Yushu

+-------------------------------------------------+
| Yushu Yao
| Ph:1-510-486-4690
|
| Lawrence Berkeley National Lab
| 1 Cyclotron Road
| Berkeley CA 94720 - USA
+-------------------------------------------------+




On Tue, May 24, 2011 at 3:09 PM, jcbollinger <john.bollin...@stjude.org>wrote:

>
>
> 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.
>
>

-- 
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