1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
# these parameters need to be accessed from several locations and
# should be considered to be constant
class glance::params {
include openstacklib::defaults
$pyver3 = $openstacklib::defaults::pyver3
$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 $facts['os']['family'] {
'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'
$glance_wsgi_script_path = '/var/www/cgi-bin/glance'
$glance_wsgi_script_source = "/usr/lib/python${pyver3}/site-packages/glance/wsgi/api.py"
}
'Debian': {
$package_name = undef
$api_package_name = 'glance-api'
$api_service_name = 'glance-api'
$pyceph_package_name = 'python3-ceph'
$lock_path = '/var/lock/glance'
$glance_wsgi_script_path = '/usr/lib/cgi-bin/glance'
$glance_wsgi_script_source = '/usr/bin/glance-wsgi-api'
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
}
}
|