Add dnf support
This patch adds dnf support for CentOS. Implements: blueprint centos-and-dnf Change-Id: I41fbac74c03835c566bd9cac2a0b509caf47d657
This commit is contained in:
parent
42fad6ddd7
commit
1c895a1456
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user