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", ], + } + } + }