]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/glance/manifests/params.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / glance / manifests / params.pp
diff --git a/3rdparty/modules/glance/manifests/params.pp b/3rdparty/modules/glance/manifests/params.pp
new file mode 100644 (file)
index 0000000..61df5b8
--- /dev/null
@@ -0,0 +1,31 @@
+# these parameters need to be accessed from several locations and
+# should be considered to be constant
+class glance::params {
+
+  $client_package_name = 'python-glanceclient'
+  $pyceph_package_name = 'python-ceph'
+
+  $cache_cleaner_command = 'glance-cache-cleaner'
+  $cache_pruner_command  = 'glance-cache-pruner'
+
+  case $::osfamily {
+    'RedHat': {
+      $api_package_name      = 'openstack-glance'
+      $registry_package_name = 'openstack-glance'
+      $api_service_name      = 'openstack-glance-api'
+      $registry_service_name = 'openstack-glance-registry'
+      $db_sync_command       = 'glance-manage --config-file=/etc/glance/glance-registry.conf db_sync'
+    }
+    'Debian': {
+      $api_package_name      = 'glance-api'
+      $registry_package_name = 'glance-registry'
+      $api_service_name      = 'glance-api'
+      $registry_service_name = 'glance-registry'
+      $db_sync_command       = 'glance-manage --config-file=/etc/glance/glance-registry.conf db_sync'
+    }
+    default: {
+      fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian")
+    }
+  }
+
+}