Hey there, I've started working with / deploying a definition for managing iptables via templates. Is there a 'better' way to deal with default values? Here is a piece of what I'm working on..
define iptablesBase(fragment = nil, dba_frag = nil) { case $fragment { nil: { $content = '' } default: { $content = template($fragment) } } case $dba_frag { nil: { $dba_access = '' } default: { $dba_access = template($dba_frag) } } ... Is there a 'better' way to deal with default values? For instance, if I don't want to define 'dba_frag', if I didn't have a case or if statement to evaluate $dba_frag, then I would receive an error due to template evaluating 'nil'. Not sure if that makes sense, but I figured I would throw it out there. --Luke Baker -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.