9ed939888b
These parameters are common for both systems, they could be moved out from 'case'. Change-Id: I3b1c2243dc3d0c8f7cebad6a231f2bdda6b4bdb6
39 lines
1.3 KiB
Puppet
39 lines
1.3 KiB
Puppet
# == Class: trove::params
|
|
#
|
|
# Parameters for puppet-trove
|
|
#
|
|
class trove::params {
|
|
include ::openstacklib::defaults
|
|
|
|
$client_package_name = 'python-troveclient'
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$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'
|
|
}
|
|
'Debian': {
|
|
$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'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
|
|
}
|
|
|
|
} # Case $::osfamily
|
|
}
|