Use purged for firewalld

If the undercloud node was installed via anaconda gui, the anaconda-core
and related packages may be installed. These packages have a dependency
on firewalld which can result in an install failure. To ensure that we
don't fail, we need to use purge which will also cause the dependencies
to get removed as well.

Change-Id: Ib46e1545d3843ff0306e6711939840fe2fb407dc
Closes-Bug: #1669915
(cherry picked from commit a0f57042bb)
This commit is contained in:
Alex Schultz 2017-03-03 15:38:03 -07:00
parent e7059d7803
commit e98bad554b
1 changed files with 4 additions and 1 deletions

View File

@ -497,8 +497,11 @@ ensure_resource('package', 'python-dracclient')
# dependency of pxe_ilo
ensure_resource('package', 'python-proliantutils')
# firewalld is a dependency of some anaconda packages, so we need to use purge
# to ensure all the things that it might be a dependency for are also
# removed. See LP#1669915
ensure_resource('package', 'firewalld', {
'ensure' => 'absent',
'ensure' => 'purged',
})
ensure_resource('package', 'os-cloud-config')
ensure_resource('package', 'openstack-selinux')