blob: 0f3d84e75cbc319e5d3f4f43bb4f2e907d32fa3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{
"apiVersion": "v1",
"kind": "PersistentVolume",
"metadata": {
"name": "pv-{{ inventory_hostname | regex_replace("\.", "-") }}-{{ item }}",
"labels": {
"type": "nfs"
}
},
"spec": {
"capacity": {
"storage": "{{ osnl_volume_size }}Gi"
},
"accessModes": [ "ReadWriteMany" ],
"persistentVolumeReclaimPolicy": "Recycle",
"nfs": {
"Server": "{{ inventory_hostname }}",
"Path": "{{ osnl_mount_dir }}/{{ item }}"
}
}
}
|