try <% if defined? @foo_var1 %>
note the @ On Tue, Sep 9, 2008 at 8:46 PM, Grumpus <[EMAIL PROTECTED]> wrote: > > OK. I screwed that up royally... sorry for not proofing > before hitting send. Here is the corrected template: > > > <% if defined? foo_var1 %> > ... stuff to be included for nodes where foo_var1 is defined ... > <% end %> > > <% if defined? foo_var2 %> > ... stuff to be included for nodes where foo_var2 is defined ... > <% end %> > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
