Merge "roles: bifrost-ironic-install: Add PyMySQL dependency for ironic-dbsync"
This commit is contained in:
commit
6debe84803
@ -47,4 +47,5 @@ required_packages:
|
||||
- socat
|
||||
- python-pip
|
||||
- gcc
|
||||
- python-PyMySQL
|
||||
iscsi_client_package: "open-iscsi"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user