puppet-zaqar/manifests/params.pp
Thomas Herve 4a5a1fd46d Allow deployment of Zaqar WSGI with Apache
Change-Id: If91894176abdfae2820c2e13723c87f5ef8fb153
2017-02-22 13:13:12 -05:00

30 lines
933 B
Puppet

# == Class: zaqar::params
#
# Parameters for puppet-zaqar
#
class zaqar::params {
include ::openstacklib::defaults
$client_package = 'python-zaqarclient'
case $::osfamily {
'RedHat': {
$package_name = 'openstack-zaqar'
$service_name = 'openstack-zaqar'
$zaqar_wsgi_script_source = '/usr/lib/python2.7/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/python2.7/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")
}
}
}