On Thu, Apr 7, 2011 at 3:28 PM, Douglas Garstang
<doug.garst...@gmail.com> wrote:
> I'd like to be able to always include all modules at the top level, but in
> certain modules, have some logic that uses extlookup to determine if it
> should be enabled. What's the best way to use if; then; else to exit a
> module, and stop processing, based on some condition?

class foo {

  if $somecondition {

    <do all your stuff>

  }

}

Doesn't that do it inside the module for you?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to