7da1f3bf2d
* glance::cache::cleaner: Installs a cron job to remove stalled and invalid cached images. * glance::cache::pruner: Installs a cron job to keep the image cache at or below the maximum cache size. Change-Id: I99cb1809446f1a1126454ff5fa5bdceb8044ee28
30 lines
965 B
Puppet
30 lines
965 B
Puppet
# these parameters need to be accessed from several locations and
|
|
# should be considered to be constant
|
|
class glance::params {
|
|
|
|
$client_package_name = 'python-glanceclient'
|
|
$pyceph_package_name = 'python-ceph'
|
|
|
|
$cache_cleaner_command = 'glance-cache-cleaner'
|
|
$cache_pruner_command = 'glance-cache-pruner'
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$package_name = 'openstack-glance'
|
|
$api_service_name = 'openstack-glance-api'
|
|
$registry_service_name = 'openstack-glance-registry'
|
|
$db_sync_command = 'glance-manage db_sync'
|
|
}
|
|
'Debian': {
|
|
$package_name = 'glance'
|
|
$api_service_name = 'glance-api'
|
|
$registry_service_name = 'glance-registry'
|
|
$db_sync_command = 'glance-manage db_sync'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian")
|
|
}
|
|
}
|
|
|
|
}
|