catch unsupported osfamily
Previously, param lookups were returning nil. This leads to a more obvious error message.
This commit is contained in:
parent
104baec9ea
commit
ac334c1f9d
@ -4,20 +4,19 @@ class cinder::params {
|
|||||||
$cinder_conf = '/etc/cinder/cinder.conf'
|
$cinder_conf = '/etc/cinder/cinder.conf'
|
||||||
$cinder_paste_api_ini = '/etc/cinder/api-paste.ini'
|
$cinder_paste_api_ini = '/etc/cinder/api-paste.ini'
|
||||||
|
|
||||||
case $::osfamily {
|
if $::osfamily == 'Debian' {
|
||||||
'Debian': {
|
$package_name = 'cinder-common'
|
||||||
$package_name = 'cinder-common'
|
$api_package = 'cinder-api'
|
||||||
$api_package = 'cinder-api'
|
$api_service = 'cinder-api'
|
||||||
$api_service = 'cinder-api'
|
$scheduler_package = 'cinder-scheduler'
|
||||||
$scheduler_package = 'cinder-scheduler'
|
$scheduler_service = 'cinder-scheduler'
|
||||||
$scheduler_service = 'cinder-scheduler'
|
$volume_package = 'cinder-volume'
|
||||||
$volume_package = 'cinder-volume'
|
$volume_service = 'cinder-volume'
|
||||||
$volume_service = 'cinder-volume'
|
$db_sync_command = 'cinder-manage db sync'
|
||||||
$db_sync_command = 'cinder-manage db sync'
|
|
||||||
|
|
||||||
$tgt_package_name = 'tgt'
|
$tgt_package_name = 'tgt'
|
||||||
$tgt_service_name = 'tgt'
|
$tgt_service_name = 'tgt'
|
||||||
|
} else {
|
||||||
}
|
fail("unsuported osfamily ${::osfamily}, currently Debian is the only supported platform")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user