Merge "roles: bifrost-ironic-install: Add PyMySQL dependency for ironic-dbsync"

This commit is contained in:
Jenkins 2017-03-20 13:31:41 +00:00 committed by Gerrit Code Review
commit 6debe84803
2 changed files with 11 additions and 0 deletions

View File

@ -47,4 +47,5 @@ required_packages:
- socat
- python-pip
- gcc
- python-PyMySQL
iscsi_client_package: "open-iscsi"

View File

@ -90,6 +90,16 @@
- name: "Install pymysql in venv if using"
include: pip_install.yml package=pymysql virtualenv={{ bifrost_venv_dir }}
when: skip_install is not defined and (enable_venv | bool == true)
# NOTE(hwoarang): The python-pymysql package is not available on the CentOS7
# and old Debian/Ubuntu repositories so we need to get it via pip
- name: "Install pymysql on CentOS/Ubuntu if necessary"
include: pip_install.yml package=pymysql
when:
- skip_install is not defined
- enable_venv | bool == false
- (ansible_distribution == 'CentOS' and ansible_distribution_major_version <= 7) or
(ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('14.10', '=='))
- name: "Install Ironic using pip"
include: pip_install.yml
package=ironic