]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/glance/manifests/backend/file.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / glance / manifests / backend / file.pp
diff --git a/3rdparty/modules/glance/manifests/backend/file.pp b/3rdparty/modules/glance/manifests/backend/file.pp
new file mode 100644 (file)
index 0000000..0eb2dcd
--- /dev/null
@@ -0,0 +1,19 @@
+#
+# used to configure file backends for glance
+#
+#  $filesystem_store_datadir - Location where dist images are stored when
+#  default_store == file.
+#  Optional. Default: /var/lib/glance/images/
+class glance::backend::file(
+  $filesystem_store_datadir = '/var/lib/glance/images/'
+) inherits glance::api {
+
+  glance_api_config {
+    'glance_store/default_store':            value => 'file';
+    'glance_store/filesystem_store_datadir': value => $filesystem_store_datadir;
+  }
+
+  glance_cache_config {
+    'glance_store/filesystem_store_datadir': value => $filesystem_store_datadir;
+  }
+}