aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-11-25 18:27:33 +0100
committervarac <varacanero@zeromail.org>2012-11-25 18:27:33 +0100
commitfaf6fba9579e285efd28f2ef96a7e3a5d4a5dd4b (patch)
tree937b3dd29d3d4986714ea23e3cf2acea921d0b0a /manifests
parent8db3b2ad945642c925713c8da792e2b405bfe6ab (diff)
downloadpuppet-shorewall-faf6fba9579e285efd28f2ef96a7e3a5d4a5dd4b.tar.gz
puppet-shorewall-faf6fba9579e285efd28f2ef96a7e3a5d4a5dd4b.tar.bz2
added provider
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}",
+ }
+}