From e8e9a2a54e770d6a70ce97bd0c424aafebbcbd57 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Sat, 27 Jul 2013 19:47:45 +0300 Subject: [PATCH] firewall: Added ip6tables to firewall::custom::iptables --- firewall/manifests/init.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/firewall/manifests/init.pp b/firewall/manifests/init.pp index 5c36ae2..ddb3d76 100644 --- a/firewall/manifests/init.pp +++ b/firewall/manifests/init.pp @@ -223,11 +223,18 @@ class firewall::iptables inherits firewall::common::iptables { # class firewall::custom::iptables inherits firewall::common::iptables { - File["/etc/sysconfig/iptables"] { + File[$firewall::common::iptables::iptables] { source => [ "puppet:///files/firewall/iptables.${::homename}", "puppet:///files/firewall/iptables", ], } + if $firewall::common::iptables::ip6tables and $::ipv6enabled == "true" { + File[$firewall::common::iptables::ip6tables] { + source => [ "puppet:///files/firewall/ip6tables.${::homename}", + "puppet:///files/firewall/ip6tables", ], + } + } + }