4a94945884
This commit adds red hat support to cinder. - Adds Redhat package names - Make package installations optional - Make cinder client package name per OS
39 lines
1.2 KiB
Puppet
39 lines
1.2 KiB
Puppet
#
|
|
class cinder::params {
|
|
|
|
$cinder_conf = '/etc/cinder/cinder.conf'
|
|
$cinder_paste_api_ini = '/etc/cinder/api-paste.ini'
|
|
|
|
if $::osfamily == 'Debian' {
|
|
$package_name = 'cinder-common'
|
|
$client_package = 'python-cinderclient'
|
|
$api_package = 'cinder-api'
|
|
$api_service = 'cinder-api'
|
|
$scheduler_package = 'cinder-scheduler'
|
|
$scheduler_service = 'cinder-scheduler'
|
|
$volume_package = 'cinder-volume'
|
|
$volume_service = 'cinder-volume'
|
|
$db_sync_command = 'cinder-manage db sync'
|
|
|
|
$tgt_package_name = 'tgt'
|
|
$tgt_service_name = 'tgt'
|
|
|
|
} elsif($::osfamily == 'RedHat') {
|
|
|
|
$package_name = 'openstack-cinder'
|
|
$client_package = 'python-cinderclient'
|
|
$api_package = false
|
|
$api_service = 'openstack-cinder-api'
|
|
$scheduler_package = false
|
|
$scheduler_service = 'openstack-cinder-scheduler'
|
|
$volume_package = false
|
|
$volume_service = 'openstack-cinder-volume'
|
|
$db_sync_command = 'cinder-manage db sync'
|
|
$tgt_package_name = 'scsi-target-utils'
|
|
$tgt_service_name = 'tgtd'
|
|
|
|
} else {
|
|
fail("unsuported osfamily ${::osfamily}, currently Debian is the only supported platform")
|
|
}
|
|
}
|