summaryrefslogtreecommitdiffstats
path: root/roles/ands_openshift/templates/heketi/topology.json.j2
blob: 53d683e70373d44b99601d56135af1e51ebfd0d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

{
    "clusters": [
        {
            "nodes": [
{% set comma = joiner(",") %}
{% for node in openshift_storage_nodes %}
                {{ comma() }} {
                    "node": {
                        "hostnames": {
                            "manage": [
                                "{{ node }}"
                            ],
                            "storage": [
                                "{{ node }}"
                            ]
                        },
                        "zone": 1
                    },
                    "devices": [
                        "/dev/{{ansible_lvm.lvs[ands_heketi_lv].vg}}/{{ ands_heketi_lv }}"
                    ]
                }
{% endfor %}
            ]
        }
    ]
}