aboutsummaryrefslogtreecommitdiff
path: root/manifests/providers.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/providers.pp')
-rw-r--r--manifests/providers.pp23
1 files changed, 13 insertions, 10 deletions
diff --git a/manifests/providers.pp b/manifests/providers.pp
index d179247..a1f8726 100644
--- a/manifests/providers.pp
+++ b/manifests/providers.pp
@@ -1,13 +1,16 @@
+# manage providers
define shorewall::providers(
- $number,
- $mark,
- $duplicate = '-',
- $interface,
- $gateway,
- $options = '-',
- $copy = '',
+ $provider = $name,
+ $number = '',
+ $mark = '',
+ $duplicate = 'main',
+ $interface = '',
+ $gateway = '',
+ $options = '',
+ $copy = '',
+ $order = '100'
){
- shorewall::entry { "providers.d/${mark}-${title}":
- line => "${name} ${number} ${mark} ${duplicate} ${interface} ${gateway} ${options} ${copy}",
- }
+ shorewall::entry{"providers-${order}-${name}":
+ line => "# ${name}\n${provider} ${number} ${mark} ${duplicate} ${interface} ${gateway} ${options} ${copy}"
+ }
}