Thomas Goirand 0cfbe2484c Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I35b86a599d9e947648cad38904d54a8f998696e1
2021-06-15 12:59:35 +02:00

33 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'
$group = 'zaqar'
case $::osfamily {
'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'
}
'Debian': {
$package_name = 'zaqar-server'
$service_name = 'zaqar-server'
$zaqar_wsgi_script_source = "/usr/lib/python${pyver3}/dist-packages/zaqar/transport/wsgi/app.py"
$zaqar_wsgi_script_path = '/usr/lib/cgi-bin/zaqar'
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem: \
${::operatingsystem}, module ${module_name} only support osfamily \
RedHat and Debian")
}
}
}