diff options
Diffstat (limited to 'manifests/routestopped.pp')
-rw-r--r-- | manifests/routestopped.pp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/routestopped.pp b/manifests/routestopped.pp index cd39762..0e39d13 100644 --- a/manifests/routestopped.pp +++ b/manifests/routestopped.pp @@ -4,7 +4,11 @@ define shorewall::routestopped( $options = '', $order='100' ){ - shorewall::entry{"routestopped-${order}-${name}": - line => "${interface} ${host} ${options}", - } + $real_interface = $interface ? { + '' => $name, + default => $interface, + } + shorewall::entry{"routestopped.d/${order}-${name}": + line => "${real_interface} ${host} ${options}", + } } |