Ensure firewalld package is absent, not purged

There seems to be a longstanding, inexplicably unresolved bug[1][2] in
the puppet package resource on CentOS where an uninstalled package will
repeatedly be reported as being "created" when it is not installed and
when the resource has ensure => purged. This breaks idempotency tests
and is just confusing. Setting the resource to absent instead of purge
works correctly and should be sufficient for ensuring firewalld isn't
interfering..

[1] https://projects.puppetlabs.com/issues/2833
[2] https://projects.puppetlabs.com/issues/3707

Change-Id: I702cf0130b311a5cd6786b4c4dd76fa03adbd2f7
This commit is contained in:
Colleen Murphy 2018-07-10 20:43:25 +02:00
parent 8f2af6849c
commit ffe7e12145
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class iptables(
onlyif => '/usr/bin/pgrep firewalld',
}
package { 'firewalld':
ensure => 'purged',
ensure => absent,
require => Exec['stop-firewalld-if-running'],
before => Package['iptables'],
}