summaryrefslogtreecommitdiff
path: root/manifests/providers.pp
diff options
context:
space:
mode:
authorMatthias Imsand <imsand@puzzle.ch>2010-11-23 18:32:45 +0100
committerMarcel Haerry <haerry@puzzle.ch>2011-08-04 11:27:17 +0200
commitc1c21b8114b0a7895716a99ccade13b338fb3c56 (patch)
tree1cc687f3489b96767d14417405bd97948efb1ebf /manifests/providers.pp
parent03cf926ad26a0b1b5c2882ea0b9642aca9b058cf (diff)
add management for providers
Diffstat (limited to 'manifests/providers.pp')
-rw-r--r--manifests/providers.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/providers.pp b/manifests/providers.pp
new file mode 100644
index 0000000..860363e
--- /dev/null
+++ b/manifests/providers.pp
@@ -0,0 +1,16 @@
+define shorewall::providers(
+ $provider,
+ $number = '',
+ $mark = '',
+ $duplicate = 'main',
+ $interface = '',
+ $gateway = '',
+ $options = '',
+ $copy = '',
+ $order='100'
+){
+ shorewall::entry{"providers.d/${order}-${name}":
+ line => "# ${name}\n${provider} ${number} ${mark} ${duplicate} ${interface} ${gateway} ${options} ${copy}"
+ }
+}
+