On 12/18/2012 01:21 AM, Philip Brown wrote: > Except that is not strictly true. > There is an early-exit "fail" directive that can be used conditionally. > So why not a conditional early exit from a module, that allows other > modules to keep going?
Because module is not a function, and resources in the module are not commands. And Puppet is not procedural language as I've noted already. So, your only way to achieve what you are trying is to encase all resources in the conditional, and since you don't want to do that, then either you modify your node classifier not to include that class at the first place or change the approach to the initial problem you are trying to solve. > Perhaps it would help if I rephrased "exit" as some other more > state-friendly language, but nothing is coming to mind at the moment. You're trying to solve your problem at the wrong level. You should do it on the ENC and not class level. -- 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.