--- /dev/null
+#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
--- /dev/null
+#
+# 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
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],
}
shorewall::managed_file { tcclasses: }
shorewall::managed_file { rtrules: }
+ shorewall::managed_file { providers: }
}
--- /dev/null
+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}",
+ }
+}