]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/keystone/manifests/params.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / keystone / manifests / params.pp
diff --git a/3rdparty/modules/keystone/manifests/params.pp b/3rdparty/modules/keystone/manifests/params.pp
new file mode 100644 (file)
index 0000000..f3f0f4d
--- /dev/null
@@ -0,0 +1,36 @@
+#
+# 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'
+      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'
+    }
+  }
+}