From ceb57f6a7073b9f7fddfda3ba5b734b168019285 Mon Sep 17 00:00:00 2001 From: varac Date: Sun, 25 Nov 2012 17:49:37 +0100 Subject: add rtrules --- manifests/base.pp | 1 + manifests/init.pp | 2 ++ manifests/rtrules.pp | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 manifests/rtrules.pp (limited to 'manifests') diff --git a/manifests/base.pp b/manifests/base.pp index 58b753e..c49c23b 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -42,6 +42,7 @@ class shorewall::base { File["/var/lib/puppet/modules/shorewall/tcdevices"], File["/var/lib/puppet/modules/shorewall/tcrules"], File["/var/lib/puppet/modules/shorewall/tcclasses"], + File["/var/lib/puppet/modules/shorewall/rtrules"], ], require => Package[shorewall], } diff --git a/manifests/init.pp b/manifests/init.pp index f69a6f2..72e0533 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -72,4 +72,6 @@ class shorewall { # See http://www.shorewall.net/3.0/traffic_shaping.htm shorewall::managed_file { tcclasses: } + shorewall::managed_file { rtrules: } + } diff --git a/manifests/rtrules.pp b/manifests/rtrules.pp new file mode 100644 index 0000000..eeb7cc6 --- /dev/null +++ b/manifests/rtrules.pp @@ -0,0 +1,11 @@ +define shorewall::rtrules( + $source = '-', + $destination = '-', + $provider, + $priority, + $mark, +){ + shorewall::entry { "rtrules.d/${mark}-${title}": + line => "# ${name}\n${source} ${destination} ${provider} ${priority} ${mark}", + } +} -- cgit v1.2.3