puppet-zaqar/manifests/params.pp
Thomas Goirand d19b7a08e9 Debian and /usr/lib/python3: fix path
Debian based systems (including Ubuntu and other derivatives) always use
/usr/lib/python3 (and not /usr/lib/python3.x), therefore, we shouldn't
use a variable ${pyver3} instead of the 3.

Change-Id: I5c7faa89d0e719b03c9bb47bb45fa5db4487e0e3
2021-06-16 13:55:29 +02:00

33 lines
1021 B
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/python3/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")
}
}
}