summaryrefslogtreecommitdiffstats
path: root/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-01-19 14:50:55 -0500
committerAndrew Butcher <abutcher@redhat.com>2016-02-01 17:05:55 -0500
commit44e5ddc20e7069e5345f48426a69e725aa8ea1d4 (patch)
tree638eb0ffb58c3482e2fd44766e867d6e68fac0f4 /roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
parent3d3053062ee3bca175df6eb4dd66ff56237234ca (diff)
downloadopenshift-44e5ddc20e7069e5345f48426a69e725aa8ea1d4.tar.gz
openshift-44e5ddc20e7069e5345f48426a69e725aa8ea1d4.tar.bz2
openshift-44e5ddc20e7069e5345f48426a69e725aa8ea1d4.tar.xz
openshift-44e5ddc20e7069e5345f48426a69e725aa8ea1d4.zip
Refactor registry storage options.
Diffstat (limited to 'roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2')
-rw-r--r--roles/openshift_persistent_volumes/templates/persistent-volume.yml.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2 b/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
new file mode 100644
index 000000000..5714b6b0d
--- /dev/null
+++ b/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
@@ -0,0 +1,14 @@
+---
+apiVersion: v1
+kind: List
+items:
+{% for volume in persistent_volumes %}
+- kind: PersistentVolume
+ metadata:
+ name: "{{ volume.name }}"
+ spec:
+ capacity:
+ storage: "{{ volume.capacity }}"
+ accessModes: {{ volume.access_modes | to_padded_yaml(2, 2) }}
+ {{ volume.storage.keys()[0] }}: {{ volume.storage[volume.storage.keys()[0]] | to_padded_yaml(3, 2) }}
+{% endfor %}