#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.
Hi Chengkai,I have faced similar kind of problem for class ordering using ordering arrow (->). You can try the stage resources for ordering classes.
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?
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/OvTTmJm5QvA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.