diff --git a/manifests/linux/redhat.pp b/manifests/linux/redhat.pp index b7a4d0e3f..6fdc69458 100644 --- a/manifests/linux/redhat.pp +++ b/manifests/linux/redhat.pp @@ -20,7 +20,7 @@ # RHEL 7 and later and Fedora 15 and later require the iptables-services # package, which provides the /usr/libexec/iptables/iptables.init used by # lib/puppet/util/firewall.rb. - if ($::operatingsystem != 'Fedora' and versioncmp($::operatingsystemrelease, '7.0') >= 0) + if ($::operatingsystem != 'Fedora' and versioncmp($::operatingsystemmajrelease, '7') >= 0) or ($::operatingsystem == 'Fedora' and versioncmp($::operatingsystemrelease, '15') >= 0) { package { 'firewalld': ensure => absent,