Merge "Clean up package installation"

This commit is contained in:
Zuul 2020-12-16 17:06:40 +00:00 committed by Gerrit Code Review
commit bf698221c3
2 changed files with 30 additions and 25 deletions

View File

@ -7,8 +7,9 @@ iptables:
lshw:
ipmitool:
qemu-utils:
# NOTE(dtantsur): gcc is not build-only because dkms requires it
gcc:
python-dev:
python:
parted:
hdparm:
util-linux:
@ -22,22 +23,34 @@ efibootmgr:
efivar:
chrony:
e2fsprogs:
libffi-dev:
build-only: true
libssl-dev:
build-only: true
python-dev:
build-only: true
# The base minimum element uninstalls firmware, but it's needed for bare metal.
linux-firmware:
phase: post-install.d
when: IPA_DISTRO_FAMILY = rh
# Packages that should not normally be present on IPA images
cloud-init:
phase: post-install.d
uninstall: true
teamd:
phase: post-install.d
uninstall: true
when: IPA_DISTRO_FAMILY = rh
tuned:
phase: post-install.d
uninstall: true
when: IPA_DISTRO_FAMILY = rh
# Unnecessary packages to remove. We run all removals in pre-install phase, to
# avoid breaking installs that happen in install phase.
cloud-init:
phase: pre-install.d
uninstall: true
git:
phase: pre-install.d
uninstall: true
@ -49,11 +62,11 @@ rsync:
uninstall: true
# Distro-specific uninstalls
cronie:
kernel-debug-devel:
phase: pre-install.d
uninstall: true
when: IPA_DISTRO_FAMILY = rh
kernel-debug-devel:
mozjs60:
phase: pre-install.d
uninstall: true
when: IPA_DISTRO_FAMILY = rh
@ -61,7 +74,11 @@ plymouth:
phase: pre-install.d
uninstall: true
when: IPA_DISTRO_FAMILY = rh
teamd:
python3-cairo:
phase: pre-install.d
uninstall: true
when: IPA_DISTRO_FAMILY = rh
python3-gobject-base:
phase: pre-install.d
uninstall: true
when: IPA_DISTRO_FAMILY = rh

View File

@ -3,25 +3,20 @@
"rhel": {
"8": {
"tgt": "target-restore",
"curl": "curl",
"ironic-python-agent": "openstack-ironic-python-agent",
"libffi-dev": "libffi-devel",
"qemu-utils": "qemu-img",
"python": "python3",
"python-dev": "python3-devel"
}
},
"centos": {
"8": {
"tgt": "target-restore",
"curl": "curl",
"ironic-python-agent": "openstack-ironic-python-agent",
"libffi-dev": "libffi-devel",
"qemu-utils": "qemu-img",
"python": "python3",
"python-dev": "python3-devel"
}
},
"ubuntu": {
"bionic": {
"python": "python3",
"python-dev": "python3-dev"
}
}
@ -29,24 +24,17 @@
"family": {
"redhat": {
"tgt": "scsi-target-utils",
"curl": "curl",
"ironic-python-agent": "openstack-ironic-python-agent",
"libffi-dev": "libffi-devel",
"libssl-dev": "openssl-devel",
"qemu-utils": "qemu-img",
"python-dev": "python-devel"
},
"debian": {
"tgt": "tgt",
"curl": "curl",
"python": "python3",
"python-dev": "python3-dev"
}
},
"default": {
"tgt": "tgt",
"curl": "curl",
"ironic-python-agent": "openstack-ironic-python-agent",
"qemu-utils": "qemu-utils",
"python-dev": "python-dev"
"ironic-python-agent": "openstack-ironic-python-agent"
}
}