File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
# List of pools to define and start.
3
3
# Each item should be a dict containing the following items:
4
4
# name: The name of the pool.
5
- # type: The type of the pool, currently only 'dir' is supported.
5
+ # type: The type of the pool, currently only 'dir', 'lvm2' or 'zfs' are supported.
6
6
# capacity: The capacity, in bytes, of the pool.
7
7
# path: The absolute path to the pool's backing directory.
8
8
# mode: The access mode of the pool.
Original file line number Diff line number Diff line change 3
3
{% if 'capacity' in item %}
4
4
<capacity >{{ item.capacity }}</capacity >
5
5
{% endif %}
6
- {% if item .type == 'lvm2' %}
6
+ {% if item .type == 'lvm2' or item . type == 'zfs' %}
7
7
<source >
8
8
<name >{{ item.source }}</name >
9
+ {% if item .type == 'lvm2' %}
9
10
<format type =' lvm2' />
11
+ {% endif %}
10
12
</source >
11
13
{% endif %}
14
+ {% if item .type != 'zfs' %}
12
15
<target >
13
16
<path >{{ item.path | default('placeholder_value') }}</path >
14
17
</target >
18
+ {% endif %}
15
19
</pool >
You can’t perform that action at this time.
0 commit comments