Files
puppet-glance/manifests/params.pp
Alan Bishop 6f61ecd9c5 Configure the oslo.concurrency lock_path
A recent change in os-brick [1], which is used by cinder backends,
requires external file locks. This patch adds support for configuring
the lock path, with a default value that matches the corresponding
lock paths used by other services that use os-brick (namely cinder
and nova).

[1] I6f7f7d19540361204d4ae3ead2bd6dcddb8fcd68

Closes-Bug: #1980539
Change-Id: I5ea6766656f4227a1c514777c03bbf78d4ac59cd
2022-07-01 21:47:45 -07:00

40 lines
1.2 KiB
Puppet

# these parameters need to be accessed from several locations and
# should be considered to be constant
class glance::params {
include openstacklib::defaults
$client_package_name = 'python3-glanceclient'
$cache_cleaner_command = 'glance-cache-cleaner'
$cache_pruner_command = 'glance-cache-pruner'
$user = 'glance'
$group = 'glance'
$boto3_package_name = 'python3-boto3'
case $::osfamily {
'RedHat': {
$package_name = 'openstack-glance'
$api_package_name = undef
$api_service_name = 'openstack-glance-api'
$pyceph_package_name = 'python3-rbd'
$lock_path = '/var/lib/glance/tmp'
}
'Debian': {
$package_name = undef
$api_package_name = 'glance-api'
$api_service_name = 'glance-api'
if $::operatingsystem == 'Debian' {
$pyceph_package_name = 'python3-ceph'
} else {
$pyceph_package_name = 'python3-rbd'
}
$lock_path = '/var/lock/glance'
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
module ${module_name} only support osfamily RedHat and Debian")
}
}
}