Merge "Fixed package names for CentOS-8 octavia deployment" into stable/train

This commit is contained in:
Zuul 2020-05-12 07:11:23 +00:00 committed by Gerrit Code Review
commit 5450ec4423
1 changed files with 18 additions and 7 deletions

View File

@ -142,13 +142,24 @@ outputs:
setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: Ensure packages required for configuring octavia are present
package:
name:
- python2-neutronclient
- python2-openstackclient
- openssl
state: present
- block:
- name: Ensure packages required for configuring octavia are present for CentOS 7
package:
name:
- python2-neutronclient
- python2-openstackclient
- openssl
state: present
when: ansible_distribution_major_version is version(8, '<')
- name: Ensure packages required for configuring octavia are present for CentOS/RHEL 8
package:
name:
- python3-neutronclient
- python3-openstackclient
- openssl
state: present
when: ansible_distribution_major_version is version(8, '>=')
when: {get_param: EnablePackageInstall}
- name: enable virt_sandbox_use_netlink for healthcheck
seboolean: