From 83ddd84d90bd1ce512476fe4fb37ecf3553befc0 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 10 May 2019 00:30:48 -0400 Subject: [PATCH] [redhat] Update variables to be version agnostic The RedHat-based operating systems such as CentOS have a pretty stable list of packages, therefore, we don't need to pin it by version and we can instead move to a much more generic redhat.yml which will support a bigger range of systems. Change-Id: I5eaa3cb6b3bcae96ff8ebebb368eb4a6fdfd1bae --- vars/{redhat-7.yml => redhat.yml} | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) rename vars/{redhat-7.yml => redhat.yml} (84%) diff --git a/vars/redhat-7.yml b/vars/redhat.yml similarity index 84% rename from vars/redhat-7.yml rename to vars/redhat.yml index ca509187..bb516882 100644 --- a/vars/redhat-7.yml +++ b/vars/redhat.yml @@ -23,7 +23,6 @@ nova_distro_packages: - genisoimage - git - iptables - - python-openstackclient nova_devel_distro_packages: - libxml2-devel @@ -67,17 +66,17 @@ nova_compute_kvm_distro_packages: - libvirt-daemon-driver-qemu - libvirt-client - nc - - qemu-kvm-ev + - "qemu-kvm{% if ansible_distribution_major_version|int <= 7 %}-ev{% endif %}" - libvirt-python - nfs-utils - python-libguestfs - - qemu-img-ev + - "qemu-img{% if ansible_distribution_major_version|int <= 7 %}-ev{% endif %}" - sysfsutils - "{{ (ansible_architecture == 'aarch64') | ternary('AAVMF', 'OVMF') }}" nova_compute_kvm_packages_to_symlink: - - libvirt-python - - python-libguestfs + - "{% if ansible_distribution_major_version|int <= 7 %}libvirt-python{% else %}python2-libvirt{% endif %}" + - "python{% if ansible_distribution_major_version|int > 7 %}2{% endif %}-libguestfs" nova_compute_ksm_packages: - ksmtuned