summaryrefslogtreecommitdiffstats
path: root/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
diff options
context:
space:
mode:
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 %}