Add dnf support

This patch adds dnf support for CentOS.

Implements: blueprint centos-and-dnf
Change-Id: I1e83872b86234fb6bf5c0459cbb5d618573f1e24
This commit is contained in:
Major Hayden 2017-08-02 13:46:29 -05:00
parent e2b171d7ad
commit ed772fe0ef
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
3 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,7 @@
path: "{{ neutron_bin | dirname }}/bin/python2.7" path: "{{ neutron_bin | dirname }}/bin/python2.7"
state: "absent" state: "absent"
when: when:
- ansible_pkg_mgr in ['yum', 'zypper'] - ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- neutron_get_venv | changed - neutron_get_venv | changed
- name: Update virtualenv path - name: Update virtualenv path

View File

@ -129,7 +129,7 @@
when: when:
- neutron_metadata_checksum_fix | bool - neutron_metadata_checksum_fix | bool
- neutron_services['neutron-linuxbridge-agent']['group'] in group_names - neutron_services['neutron-linuxbridge-agent']['group'] in group_names
- ansible_pkg_mgr == 'yum' - ansible_pkg_mgr in ['yum', 'dnf']
- name: Ensure the postup/postdown scripts are loaded (SUSE) - name: Ensure the postup/postdown scripts are loaded (SUSE)
lineinfile: lineinfile:

View File

@ -36,7 +36,7 @@
- name: Set mount path for kernel modules (CentOS) - name: Set mount path for kernel modules (CentOS)
set_fact: set_fact:
kernel_module_path: "usr/lib/modules" kernel_module_path: "usr/lib/modules"
when: ansible_pkg_mgr == 'yum' when: ansible_pkg_mgr in ['yum', 'dnf']
- name: Neutron extra lxc config - name: Neutron extra lxc config
lxc_container: lxc_container:
@ -81,7 +81,7 @@
- libffi-devel - libffi-devel
when: when:
- inventory_hostname in groups['neutron_all'] - inventory_hostname in groups['neutron_all']
- ansible_pkg_mgr == 'yum' - ansible_pkg_mgr in ['yum', 'dnf']
- include: common/ensure-rabbitmq.yml - include: common/ensure-rabbitmq.yml
vhost_name: "{{ neutron_rabbitmq_vhost }}" vhost_name: "{{ neutron_rabbitmq_vhost }}"
user_name: "{{ neutron_rabbitmq_userid }}" user_name: "{{ neutron_rabbitmq_userid }}"