firewall: Do not start ip6tables when no IPv6 addres is configured.

This commit is contained in:
Timo Mkinen 2013-05-08 11:04:31 +03:00
parent cd4e47ddca
commit 2ce573e809

View file

@ -161,7 +161,7 @@ class firewall::common::iptables {
require => Package["iptables"],
}
if $ip6tables {
if $ip6tables and $::ipaddress6 {
file { $ip6tables:
ensure => present,
mode => "0600",
@ -207,7 +207,7 @@ class firewall::iptables inherits firewall::common::iptables {
content => template("firewall/iptables.erb"),
}
if $firewall::common::iptables::ip6tables {
if $firewall::common::iptables::ip6tables and $::ipaddress6 {
File[$firewall::common::iptables::ip6tables] {
content => template("firewall/ip6tables.erb"),
}