Re: [Puppet Users] Default value for arguments of a definition

2010-05-22 Thread Dan Bode
On Sat, May 22, 2010 at 2:12 PM, mathie wrote: > For example, I'm trying to define a function to setup the firewall > config > > define fnConfig($pInterface,$pPorts) { > file { "/etc/apf/conf.apf": >content => template("apf.conf.erb"), >notify => Service["apf"], > } > } > > However, if

[Puppet Users] Default value for arguments of a definition

2010-05-22 Thread mathie
For example, I'm trying to define a function to setup the firewall config define fnConfig($pInterface,$pPorts) { file { "/etc/apf/conf.apf": content => template("apf.conf.erb"), notify => Service["apf"], } } However, if I don't specify anything, I would like it to automatically set $p