Use platform_family instead of platform
This will allow the ibm_powerkvm platform to be recognized and will simplify uses of multiple platforms from the same family. Change-Id: Iebf2aad9f3b4649fb5c27d2fc93ee60c67e42737 Partially-Implements: blueprint add-ibm-powerkvm-enablement Implements: blueprint platform-family
This commit is contained in:
parent
fce85a5a69
commit
9a7bd31154
|
@ -19,14 +19,14 @@
|
|||
#
|
||||
|
||||
# Platform defaults
|
||||
case platform
|
||||
when 'fedora', 'redhat', 'centos' # :pragma-foodcritic: ~FC024 - won't fix this
|
||||
case platform_family
|
||||
when 'fedora', 'rhel' # :pragma-foodcritic: ~FC024 - won't fix this
|
||||
default['openstack']['db']['platform']['mysql_python_packages'] = ['MySQL-python']
|
||||
default['openstack']['db']['platform']['postgresql_python_packages'] = ['python-psycopg2']
|
||||
when 'suse'
|
||||
default['openstack']['db']['platform']['mysql_python_packages'] = ['python-mysql']
|
||||
default['openstack']['db']['platform']['postgresql_python_packages'] = ['python-psycopg2']
|
||||
when 'ubuntu'
|
||||
when 'debian'
|
||||
default['openstack']['db']['platform']['mysql_python_packages'] = ['python-mysqldb']
|
||||
default['openstack']['db']['platform']['postgresql_python_packages'] = ['python-psycopg2']
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue