Firewalld package cannot be uninstalled, because other packages might be dependent
on it. This patch makes just firewalld service to stop and be disabled.
For more info please check: https://bugzilla.redhat.com/show_bug.cgi?id=
1148399
# lib/puppet/util/firewall.rb.
if ($::operatingsystem != 'Fedora' and versioncmp($::operatingsystemrelease, '7.0') >= 0)
or ($::operatingsystem == 'Fedora' and versioncmp($::operatingsystemrelease, '15') >= 0) {
- package { 'firewalld':
- ensure => absent,
- before => Package['iptables-services'],
+ service { "firewalld":
+ ensure => stopped,
+ enable => false,
+ before => Package['iptables-services']
}
package { 'iptables-services':
:operatingsystemrelease => osrel
}}
- it { should_not contain_package('firewalld') }
+ it { should_not contain_service('firewalld') }
it { should_not contain_package('iptables-services') }
end
end
:operatingsystemrelease => osrel
}}
- it { should contain_package('firewalld').with(
- :ensure => 'absent',
+ it { should contain_service('firewalld').with(
+ :ensure => 'stopped',
+ :enable => false,
:before => 'Package[iptables-services]'
)}