Hi, have you ever had this on resolved? If not, this is likely the information you are lacking:
http://docs.puppetlabs.com/learning/ordering.html#metaparameters-resource-references-and-ordering HTH, Felix On 03/13/2014 10:35 AM, Luis León wrote: > I have a problem with if statements, they execute first of all, for > example the next code inside a class that is placed the last resource on > node definition: > > exec { 'rabbitmqctl stop_app': > } > if $rabbitmq_version == '2.8.7-1' { > exec { 'rabbitmqctl reset': > } > > exec { "rabbitmqctl cluster rabbit@$cluster": > } > } > elsif $rabbitmq_version == '3.2.2-1' { > exec { "rabbitmqctl join_cluster rabbit@$cluster": > } > } > exec { 'rabbitmqctl start_app': > } > > The commands inside the if or elsif conditions are executed first, but i > don't want this. I think to call another subclass inside the if/elsif > conditions. > What do you think? Is there -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/534BFEA1.5020102%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/d/optout.
