summaryrefslogtreecommitdiff
path: root/manifests
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
parent03cf926ad26a0b1b5c2882ea0b9642aca9b058cf (diff)
add management for providers
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base.pp3
-rw-r--r--manifests/init.pp2
-rw-r--r--manifests/providers.pp16
3 files changed, 20 insertions, 1 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index e068c35..c5ad790 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -38,7 +38,8 @@ class shorewall::base {
File["/var/lib/puppet/modules/shorewall/blacklist"],
File["/var/lib/puppet/modules/shorewall/rfc1918"],
File["/var/lib/puppet/modules/shorewall/routestopped"],
- File["/var/lib/puppet/modules/shorewall/params"]
+ File["/var/lib/puppet/modules/shorewall/params"],
+ File["/var/lib/puppet/modules/shorewall/providers"],
],
require => Package[shorewall],
}
diff --git a/manifests/init.pp b/manifests/init.pp
index e9ba464..a5ed0af 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -49,4 +49,6 @@ class shorewall {
shorewall::managed_file { routestopped: }
# See http://www.shorewall.net/3.0/Documentation.htm#Variables
shorewall::managed_file { params: }
+ # http://www.shorewall.net/manpages/shorewall-providers.html
+ shorewall::managed_file { providers: }
}
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}"
+ }
+}
+