On Dec 23, 2010, at 6:39 AM, sanjiv.singh wrote:
>
>> This should be very easy, provided your classes do not conflict. A
>> node can include any number of classes, so all you have to do is
>> change this:
>>
>> ====
>> node node1 {
>> include <tomcat_class_name>
>>
>> }
>>
>> node node2 {
>> include <process_class_name>}
>>
>> ====
>>
>> to this:
>>
>> ====
>> node node3 {
>> include <tomcat_class_name>
>> include <process_class_name>}
>>
>> ================
>>
> hi jcbollinger,
> thankx for reply .
>
> first for all I had configured puppet with LDAP.
> there is one node entry in Ldap for per host to be configured.
>
> and node in LDAP have a variable pointing to pupppet class like
> tomcat.pp to be triggered for that node .
>
> what i can do , add two variable in ldap node
> one pointing to tomcat.pp and other pointing to process.pp.
>
>
> as i know puppet decides order of resource execution in own way ,
> unless explicitly mentioned in class.
>
>
> how can I ensure that tomcat.pp must be triggered before
> process.pp. ?
You need to stop thinking this way. Files don't have a logical meaning in
puppet. The question you want to ask is, "how do I ensure that the class
"tomcat" is applied before the class "process".
> is include <class> ensures order of execution as in order included ?
No. Here's one way to do it. I don't know if the "include" is needed, but it
doesn't hurt.:
class first
{
include second
require(second)
}
class second
{
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.