bdd660ccdb
The move of policy.json into code means the file may not exist. We've added support to ensure that the file exists in the openstacklib but we need to make sure the permissions are right for each service. This adds the group information to the policies so it works right. Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed Related-Bug: #1742154 Change-Id: I10b322d05042fdef23758d46906cf57aa9def97f
31 lines
971 B
Puppet
31 lines
971 B
Puppet
# == Class: zaqar::params
|
|
#
|
|
# Parameters for puppet-zaqar
|
|
#
|
|
class zaqar::params {
|
|
include ::openstacklib::defaults
|
|
|
|
$client_package_name = 'python-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")
|
|
}
|
|
}
|
|
}
|