robert.gstoehl wrote:
I'd like to provide a definition with an argument which is optional
and defaults to the title:
net::route_default{"first": gateway => "192.168.0.1"}
or the shortcut:
net::route_default{"192.168.0.1"}
Do it like this:
define route_default($gateway="")
{
i
Hey there,
I'd like to provide a definition with an argument which is optional
and defaults to the title:
net::route_default{"first": gateway => "192.168.0.1"}
or the shortcut:
net::route_default{"192.168.0.1"}
class net {
define route_default($gateway=$title) {
exec {"echo $gateway >> /e