On Jun 21, 2011, at 5:04 PM, Douglas Garstang wrote: > All, > > I have a module that I would like to set a variable for, and then if that is > variable is set, consider the module (which deploys software), in > 'maintenance mode', where it drops out of the module, and moves into the next > module, kind of like a return function. Can puppet do that? I don't want to > use fail() as it stops ALL puppet processing.
Well, this Pesudo-code should work: init.pp class my_module { $module_is_enabled = true if( $module_is_enabled ) { include my_module::content } } content.pp: class my_module::content { Put real content here } -- 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.