]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/keystone/manifests/params.pp
f3f0f4d265789d4d97e63af2378923929105c15c
[dsa-puppet.git] / 3rdparty / modules / keystone / manifests / params.pp
1 #
2 # This class contains the platform differences for keystone
3 #
4 class keystone::params {
5   $client_package_name = 'python-keystone'
6
7   case $::osfamily {
8     'Debian': {
9       $package_name                 = 'keystone'
10       $service_name                 = 'keystone'
11       $keystone_wsgi_script_path    = '/usr/lib/cgi-bin/keystone'
12       $python_memcache_package_name = 'python-memcache'
13       case $::operatingsystem {
14         'Debian': {
15           $service_provider            = undef
16           $keystone_wsgi_script_source = '/usr/share/keystone/wsgi.py'
17         }
18         default: {
19           # NOTE: Ubuntu does not currently provide the keystone wsgi script in the
20           # keystone packages.  When Ubuntu does provide the script, change this
21           # to use the correct path (which I'm assuming will be the same as Debian).
22           $service_provider            = 'upstart'
23           $keystone_wsgi_script_source = 'puppet:///modules/keystone/httpd/keystone.py'
24         }
25       }
26     }
27     'RedHat': {
28       $package_name                 = 'openstack-keystone'
29       $service_name                 = 'openstack-keystone'
30       $keystone_wsgi_script_path    = '/var/www/cgi-bin/keystone'
31       $python_memcache_package_name = 'python-memcached'
32       $service_provider             = undef
33       $keystone_wsgi_script_source  = '/usr/share/keystone/keystone.wsgi'
34     }
35   }
36 }