2012-03-16 22:27:20 -07:00
|
|
|
# these parameters need to be accessed from several locations and
|
|
|
|
# should be considered to be constant
|
|
|
|
class glance::params {
|
2016-07-07 12:00:55 +02:00
|
|
|
include ::openstacklib::defaults
|
2012-03-16 22:27:20 -07:00
|
|
|
|
2013-06-20 10:20:22 -07:00
|
|
|
$client_package_name = 'python-glanceclient'
|
2012-05-03 10:36:15 -05:00
|
|
|
|
2013-07-23 16:19:48 -04:00
|
|
|
$cache_cleaner_command = 'glance-cache-cleaner'
|
|
|
|
$cache_pruner_command = 'glance-cache-pruner'
|
|
|
|
|
2012-03-16 22:27:20 -07:00
|
|
|
case $::osfamily {
|
|
|
|
'RedHat': {
|
2015-04-17 13:37:04 +00:00
|
|
|
$api_package_name = 'openstack-glance'
|
2016-03-16 18:46:32 +03:00
|
|
|
$glare_package_name = 'openstack-glance'
|
2015-04-17 13:37:04 +00:00
|
|
|
$registry_package_name = 'openstack-glance'
|
2012-03-16 22:27:20 -07:00
|
|
|
$api_service_name = 'openstack-glance-api'
|
2016-03-16 18:46:32 +03:00
|
|
|
$glare_service_name = 'openstack-glance-glare'
|
2012-03-16 22:27:20 -07:00
|
|
|
$registry_service_name = 'openstack-glance-registry'
|
2015-06-03 18:53:09 -04:00
|
|
|
if ($::operatingsystem != 'fedora' and versioncmp($::operatingsystemrelease, '7') < 0) {
|
|
|
|
$pyceph_package_name = 'python-ceph'
|
|
|
|
} else {
|
|
|
|
$pyceph_package_name = 'python-rbd'
|
|
|
|
}
|
2012-03-16 22:27:20 -07:00
|
|
|
}
|
|
|
|
'Debian': {
|
2014-04-01 15:59:29 +02:00
|
|
|
$api_package_name = 'glance-api'
|
2016-03-16 18:46:32 +03:00
|
|
|
$glare_package_name = 'glance-glare'
|
2014-04-01 15:59:29 +02:00
|
|
|
$registry_package_name = 'glance-registry'
|
2012-03-16 22:27:20 -07:00
|
|
|
$api_service_name = 'glance-api'
|
2016-03-16 18:46:32 +03:00
|
|
|
$glare_service_name = 'glance-glare'
|
2012-03-16 22:27:20 -07:00
|
|
|
$registry_service_name = 'glance-registry'
|
2015-06-03 18:53:09 -04:00
|
|
|
$pyceph_package_name = 'python-ceph'
|
2012-03-16 22:27:20 -07:00
|
|
|
}
|
|
|
|
default: {
|
|
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|