您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

hard_disks_base_profile.json.j2 624B

7 年前
12345678910111213141516171819202122
  1. [
  2. {% for hd in hard_disks %}
  3. {% set first_device = (hard_disks | first) == hd %}
  4. {
  5. "device": "{{hd.device}}",
  6. "name": "{{hd.name}}",
  7. "label_type": "{{ _partitioning_base_profile.label_type }}",
  8. "partitions": [
  9. {% if first_device and _partitioning_base_profile.partitions_first_device is defined %}
  10. {% for part in _partitioning_base_profile.partitions_first_device %}
  11. {{part}},
  12. {% endfor %}
  13. {% endif %}
  14. {% if _partitioning_base_profile.partitions is defined %}
  15. {% for part in _partitioning_base_profile.partitions %}
  16. {{part}},
  17. {% endfor %}
  18. {% endif %} #}
  19. ]
  20. },
  21. {% endfor %}
  22. ]