aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base.pp1
-rw-r--r--manifests/init.pp1
-rw-r--r--manifests/providers.pp13
3 files changed, 15 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index c49c23b..c50aa6e 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -43,6 +43,7 @@ class shorewall::base {
File["/var/lib/puppet/modules/shorewall/tcrules"],
File["/var/lib/puppet/modules/shorewall/tcclasses"],
File["/var/lib/puppet/modules/shorewall/rtrules"],
+ File["/var/lib/puppet/modules/shorewall/providers"],
],
require => Package[shorewall],
}
diff --git a/manifests/init.pp b/manifests/init.pp
index 72e0533..0bdc50d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -73,5 +73,6 @@ class shorewall {
shorewall::managed_file { tcclasses: }
shorewall::managed_file { rtrules: }
+ shorewall::managed_file { providers: }
}
diff --git a/manifests/providers.pp b/manifests/providers.pp
new file mode 100644
index 0000000..d179247
--- /dev/null
+++ b/manifests/providers.pp
@@ -0,0 +1,13 @@
+define shorewall::providers(
+ $number,
+ $mark,
+ $duplicate = '-',
+ $interface,
+ $gateway,
+ $options = '-',
+ $copy = '',
+){
+ shorewall::entry { "providers.d/${mark}-${title}":
+ line => "${name} ${number} ${mark} ${duplicate} ${interface} ${gateway} ${options} ${copy}",
+ }
+}