|
1 | 1 | --- |
2 | | -# @var _oraasm_manage_diskgroups_asmdevice_list: $ "internal use only" |
3 | | -_oraasm_manage_diskgroups_asmdevice_list: "{% if device_persistence | lower == 'asmlib' %}\ |
4 | | - {%- for disk in item.disk -%}{{ oracle_asm_disk_prefix }}{{ disk.asmlabel | upper }}\ |
5 | | - {%- if not loop.last -%},{%- endif -%}\ |
6 | | - {%- endfor %}\ |
7 | | - {%- elif device_persistence | lower == 'asmfd' %}\ |
8 | | - {%- for disk in item.disk -%}AFD:{{ disk.asmlabel | upper }}\ |
9 | | - {%- if not loop.last -%},{%- endif -%}\ |
10 | | - {%- endfor %}\ |
11 | | - {%- elif device_persistence | lower == 'udev' %}\ |
12 | | - {%- for disk in item.disk -%}{{ oracle_asm_disk_prefix }}{{ disk.asmlabel }}\ |
13 | | - {%- if not loop.last -%},{%- endif -%}\ |
14 | | - {%- endfor %}\ |
15 | | - {%- endif %}" |
| 2 | +_oraasm_manage_diskgroups_asmdevice_list: |- |
| 3 | + {% if device_persistence == 'asmlib' %} |
| 4 | + {%- for disk in ad_loop.disk %}{{ _oracle_asm_disk_prefix }}{{ disk.asmlabel | upper }} |
| 5 | + {%- if not loop.last -%},{%- endif %} |
| 6 | + {%- endfor %} |
| 7 | + {%- elif device_persistence == 'asmfd' %} |
| 8 | + {%- for disk in ad_loop.disk -%}AFD:{{ disk.asmlabel | upper }} |
| 9 | + {%- if not loop.last -%},{%- endif -%} |
| 10 | + {%- endfor %} |
| 11 | + {%- elif device_persistence == 'udev' %} |
| 12 | + {%- for disk in ad_loop.disk -%}{{ _oracle_asm_disk_prefix }}{{ disk.asmlabel }} |
| 13 | + {%- if not loop.last -%},{%- endif -%} |
| 14 | + {%- endfor %} |
| 15 | + {%- endif %} |
16 | 16 |
|
17 | | -# @var _oraasm_manage_diskgroups_attr_name: $ "internal use only" |
18 | | -_oraasm_manage_diskgroups_attr_name: "{% if item.attributes is defined %}{{ item.attributes | default(omit) | map(attribute='name') | list }}{% else %}None{% endif %}" |
| 17 | +_oraasm_manage_diskgroups_attr_name: |- |
| 18 | + {% if ad_loop.attributes is defined %} |
| 19 | + {{- ad_loop.attributes | default(omit) | map(attribute='name') | list }} |
| 20 | + {%- else %}None{% endif %} |
19 | 21 |
|
20 | | -# @var _oraasm_manage_diskgroups_attr_value: $ "internal use only" |
21 | | -_oraasm_manage_diskgroups_attr_value: "{% if item.attributes is defined %}{{ item.attributes | default(omit) | map(attribute='value') | list }}{% else %}None{% endif %}" |
| 22 | +_oraasm_manage_diskgroups_attr_value: |- |
| 23 | + {% if ad_loop.attributes is defined %} |
| 24 | + {{- ad_loop.attributes | default(omit) | map(attribute='value') | list }} |
| 25 | + {%- else %}None{% endif %} |
| 26 | +
|
| 27 | +_oracle_asm_disk_prefix: |- |
| 28 | + {%- if device_persistence == 'asmlib' %} |
| 29 | + {%- if oracle_asm_disk_string.endswith('*') %}{{ oracle_asm_disk_string[:-1] }} |
| 30 | + {%- else %}{{ oracle_asm_disk_string }} |
| 31 | + {%- endif %} |
| 32 | + {%- elif device_persistence == 'udev' %}{{ oracle_asm_disk_string }} |
| 33 | + {%- else %} |
| 34 | + {%- endif %} |
0 commit comments