46369a7966
On Debian (and Ubuntu) the paste file is in the /etc/keystone directory, and the default setting is correct. This change will set the paste_deploy config file to absent if we're not on RedHat and no value has been explicitly specified. Closes-Bug: #1410453 Change-Id: I652bc67ff42881fa1cf66c191333b6feaeb27cca
39 lines
1.5 KiB
Puppet
39 lines
1.5 KiB
Puppet
#
|
|
# This class contains the platform differences for keystone
|
|
#
|
|
class keystone::params {
|
|
$client_package_name = 'python-keystone'
|
|
|
|
case $::osfamily {
|
|
'Debian': {
|
|
$package_name = 'keystone'
|
|
$service_name = 'keystone'
|
|
$keystone_wsgi_script_path = '/usr/lib/cgi-bin/keystone'
|
|
$python_memcache_package_name = 'python-memcache'
|
|
$paste_config = undef
|
|
case $::operatingsystem {
|
|
'Debian': {
|
|
$service_provider = undef
|
|
$keystone_wsgi_script_source = '/usr/share/keystone/wsgi.py'
|
|
}
|
|
default: {
|
|
# NOTE: Ubuntu does not currently provide the keystone wsgi script in the
|
|
# keystone packages. When Ubuntu does provide the script, change this
|
|
# to use the correct path (which I'm assuming will be the same as Debian).
|
|
$service_provider = 'upstart'
|
|
$keystone_wsgi_script_source = 'puppet:///modules/keystone/httpd/keystone.py'
|
|
}
|
|
}
|
|
}
|
|
'RedHat': {
|
|
$package_name = 'openstack-keystone'
|
|
$service_name = 'openstack-keystone'
|
|
$keystone_wsgi_script_path = '/var/www/cgi-bin/keystone'
|
|
$python_memcache_package_name = 'python-memcached'
|
|
$service_provider = undef
|
|
$keystone_wsgi_script_source = '/usr/share/keystone/keystone.wsgi'
|
|
$paste_config = '/usr/share/keystone/keystone-dist-paste.ini'
|
|
}
|
|
}
|
|
}
|