Commit faf6fba9 authored by varac's avatar varac

added provider

parent 8db3b2ad
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
#
# Shorewall version 4 - Providers File
#
# For information about entries in this file, type "man shorewall-providers"
#
# For additional information, see http://shorewall.net/MultiISP.html
#
############################################################################################
#NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS COPY
......@@ -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],
}
......
......@@ -73,5 +73,6 @@ class shorewall {
shorewall::managed_file { tcclasses: }
shorewall::managed_file { rtrules: }
shorewall::managed_file { providers: }
}
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}",
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment