c533f497f1
Rely on packaging dependencies to avoid issues caused by different package names between Fedora and RHEL (python-PyMySQL vs python2-PyMySQL). https://review.openstack.org/#/c/245229/4/spec/classes/neutron_db_spec.rb includes all the discussion that led to this. Change-Id: I32406ad0937241d2a4a02e0e9778fc4929963d3e
40 lines
1.5 KiB
Puppet
40 lines
1.5 KiB
Puppet
# Parameters for puppet-trove
|
|
#
|
|
class trove::params {
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$client_package_name = 'python-troveclient'
|
|
$common_package_name = 'openstack-trove'
|
|
$conductor_package_name = 'openstack-trove-conductor'
|
|
$conductor_service_name = 'openstack-trove-conductor'
|
|
$api_package_name = 'openstack-trove-api'
|
|
$api_service_name = 'openstack-trove-api'
|
|
$guestagent_package_name = 'openstack-trove-guestagent'
|
|
$guestagent_service_name = 'openstack-trove-guestagent'
|
|
$taskmanager_package_name = 'openstack-trove-taskmanager'
|
|
$taskmanager_service_name = 'openstack-trove-taskmanager'
|
|
$sqlite_package_name = undef
|
|
$pymysql_package_name = undef
|
|
}
|
|
'Debian': {
|
|
$client_package_name = 'python-troveclient'
|
|
$common_package_name = 'trove-common'
|
|
$conductor_package_name = 'trove-conductor'
|
|
$conductor_service_name = 'trove-conductor'
|
|
$api_package_name = 'trove-api'
|
|
$api_service_name = 'trove-api'
|
|
$guestagent_package_name = 'trove-guestagent'
|
|
$guestagent_service_name = 'trove-guestagent'
|
|
$taskmanager_package_name = 'trove-taskmanager'
|
|
$taskmanager_service_name = 'trove-taskmanager'
|
|
$sqlite_package_name = 'python-pysqlite2'
|
|
$pymysql_package_name = 'python-pymysql'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
|
|
}
|
|
|
|
} # Case $::osfamily
|
|
}
|