e2ca4a65d9
Change-Id: Iedf33a913bd6854f418d11d655204245f20d684c
37 lines
1.0 KiB
Puppet
37 lines
1.0 KiB
Puppet
# == Class: zaqar::params
|
|
#
|
|
# Parameters for puppet-zaqar
|
|
#
|
|
class zaqar::params {
|
|
include ::openstacklib::defaults
|
|
|
|
if ($::os_package_type == 'debian') {
|
|
$pyvers = '3'
|
|
} else {
|
|
$pyvers = ''
|
|
}
|
|
|
|
$client_package_name = "python${pyvers}-zaqarclient"
|
|
$group = 'zaqar'
|
|
|
|
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")
|
|
}
|
|
}
|
|
}
|