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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/56d4a440-3bbb-4001-bbf3-14be4e01e646%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to