Hi Chengkai,
    I have faced similar kind of problem for class ordering using ordering 
arrow (*->)*. You can try the stage resources for ordering classes.

Refer following code snippet,

#Declare stage resources
stage {'first':}
stage {'second':}
stage {'third':}

#Define ordering of stages
Stage[first] -> Stage[second] -> Stage[third]

#use stages in each classes.
class {'A':
       stage => first,
 } 
class {'B':
       stage => second,
} 
class {'C':
        stage => third,
} 

Refer http://docs.puppetlabs.com/puppet/2.7/reference/lang_run_stages.html for 
stage resource for classes. 

Thanks and Regards,

Rahul Khengare,

NTT DATA OSS Center, Pune, India.


On Sunday, September 15, 2013 10:44:17 AM UTC+5:30, chengkai liang wrote:

> Hi All,
>
>    I have the following classes define:
>
>    init.pp
>
>       class { 'A': } ->
>       class { 'B': } ->
>       class { 'C': }
>
> Supposedly, the execution order should A then B then C, but the actual 
> execution order seems that C is being executed before B.  Why is this 
> happening?  Isn't -> will chain up the resources order?
>
> Anybody has any idea?
>
> Thanks,
> Chengkai 
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to