puppet-zaqar/manifests/params.pp
Takashi Kajinami 0cc6468f2b Ensure python-redis is install
The python-redis package is an optional dependency and needs to be
installed explicitly in Ubuntu or Debian. (The zaqar package in RDO
has additonal dependency to require python-redis now).

Change-Id: I5c768a4ed60909f2e764ed6a39c372814b50c58b
2024-04-08 18:35:04 +09:00

34 lines
1.0 KiB
Puppet

# == Class: zaqar::params
#
# Parameters for puppet-zaqar
#
class zaqar::params {
include openstacklib::defaults
$pyver3 = $::openstacklib::defaults::pyver3
$client_package_name = 'python3-zaqarclient'
$user = 'zaqar'
$group = 'zaqar'
case $facts['os']['family'] {
'RedHat': {
$package_name = 'openstack-zaqar'
$service_name = 'openstack-zaqar'
$zaqar_wsgi_script_source = "/usr/lib/python${pyver3}/site-packages/zaqar/transport/wsgi/app.py"
$zaqar_wsgi_script_path = '/var/www/cgi-bin/zaqar'
$python_redis_package_name = 'python3-redis'
}
'Debian': {
$package_name = 'zaqar-server'
$service_name = 'zaqar-server'
$zaqar_wsgi_script_source = '/usr/lib/python3/dist-packages/zaqar/transport/wsgi/app.py'
$zaqar_wsgi_script_path = '/usr/lib/cgi-bin/zaqar'
$python_redis_package_name = 'python3-redis'
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
}
}