Add dnf support

This patch adds dnf support for CentOS.

Implements: blueprint centos-and-dnf
Change-Id: I41fbac74c03835c566bd9cac2a0b509caf47d657
This commit is contained in:
Major Hayden 2017-08-02 13:43:42 -05:00
parent 42fad6ddd7
commit 1c895a1456
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
3 changed files with 6 additions and 6 deletions

View File

@ -91,7 +91,7 @@
backup: "yes"
when:
- nova_libvirtd_listen_tcp == 1
- ansible_pkg_mgr in ['yum', 'zypper']
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
notify: Restart libvirt-bin
tags:
- nova-config
@ -106,7 +106,7 @@
backup: "yes"
when:
- nova_libvirtd_listen_tcp == 0
- ansible_pkg_mgr in ['yum', 'zypper']
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
notify: Restart libvirt-bin
tags:
- nova-config

View File

@ -146,7 +146,7 @@
path: "{{ nova_bin | dirname }}/bin/python2.7"
state: "absent"
when:
- ansible_pkg_mgr == 'yum'
- ansible_pkg_mgr in ['yum', 'dnf']
- nova_get_venv | changed
- name: Update virtualenv path

View File

@ -35,17 +35,17 @@
- inventory_hostname in groups['nova_all']
- ansible_pkg_mgr == 'apt'
- name: Install packages required to build nova python package (RPM)
yum:
package:
name: "{{ item }}"
with_items:
- libxml2-devel
- libxslt-devel
- libffi-devel
- "{{ (ansible_pkg_mgr == 'yum') | ternary('pkgconfig', 'pkg-config') }}"
- "{{ (ansible_pkg_mgr in ['yum', 'dnf']) | ternary('pkgconfig', 'pkg-config') }}"
- libvirt-devel
when:
- inventory_hostname in groups['nova_all']
- ansible_pkg_mgr in ['yum', 'zypper']
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- include: common/ensure-rabbitmq.yml
vhost_name: "{{ nova_rabbitmq_vhost }}"
user_name: "{{ nova_rabbitmq_userid }}"