diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/base.pp | 3 | ||||
-rw-r--r-- | manifests/init.pp | 2 | ||||
-rw-r--r-- | manifests/providers.pp | 16 |
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}" + } +} + |