Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

124 lignes
3.2KB

  1. filesystem_uuid_namespace: "{{ lookup('pipe','uuid -v4') }}"
  2. _fs_uuid_root: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' root') }}"
  3. _fs_uuid_boot: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' boot') }}"
  4. _fs_uuid_rescue: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' rescue') }}"
  5. _fs_uuid_select: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' select') }}"
  6. hard_disks:
  7. - device: "{{ hard_disk_device }}"
  8. label_type: "{{ _label_type[installation_profile] }}"
  9. partitions: "{{ _partitions[installation_profile] }}"
  10. _label_type:
  11. bios: msdos
  12. efi: gpt
  13. _partitions:
  14. bios:
  15. - part_type: primary
  16. fs_type: btrfs
  17. start: 768MiB
  18. end: 1GiB
  19. - part_type: primary
  20. fs_type: btrfs
  21. start: 1GiB
  22. end: 2GiB
  23. - part_type: primary
  24. fs_type: btrfs
  25. start: 2GiB
  26. end: 6GiB
  27. - part_type: primary
  28. start: 6GiB
  29. end: -1s
  30. efi:
  31. - part_type: ESP
  32. start: 256MiB
  33. end: 768MiB
  34. - name: select
  35. start: 768MiB
  36. end: 1GiB
  37. - name: "{{inventory_hostname}}-boot0"
  38. typecode: 8300
  39. start: 1GiB
  40. end: 2GiB
  41. - name: "{{inventory_hostname}}-rescue0"
  42. typecode: 8300
  43. start: 2GiB
  44. end: 6GiB
  45. - name: "{{inventory_hostname}}-crypt0"
  46. typecode: 8300
  47. start: 6GiB
  48. end: -1s
  49. mdraid_devices: []
  50. dmcrypt_devices:
  51. - device: "{{ _crypt_device[installation_profile] }}"
  52. name: "{{inventory_hostname}}-crypt0"
  53. cipher: aes-xts-plain64
  54. hash: sha512
  55. key_size: 512
  56. _crypt_device:
  57. bios: "{{ hard_disk_device }}-part4"
  58. efi: /dev/disk/by-partlabel/{{inventory_hostname}}-crypt
  59. volume_groups:
  60. - name: vg
  61. devices:
  62. - /dev/mapper/{{inventory_hostname}}-crypt0
  63. logical_volumes:
  64. - name: root
  65. size: 32G
  66. volume_group: vg
  67. - name: swap
  68. size: 1G
  69. volume_group: vg
  70. - name: home
  71. size: 100%FREE
  72. volume_group: vg
  73. filesystems: "{{ _filesystems[installation_profile] }}"
  74. _filesystems:
  75. bios:
  76. - device: /dev/vg/root
  77. mount_point: /
  78. fstype: btrfs
  79. uuid: "{{ _fs_uuid_root }}"
  80. - device: "{{ hard_disk_device }}-part2"
  81. mount_point: /boot
  82. fstype: btrfs
  83. uuid: "{{ _fs_uuid_boot }}"
  84. - device: "{{ hard_disk_device }}-part3"
  85. mount_point: /boot/rescue
  86. fstype: btrfs
  87. uuid: "{{ _fs_uuid_rescue }}"
  88. - device: "{{ hard_disk_device }}-part1"
  89. mount_point: /boot/select
  90. fstype: btrfs
  91. uuid: "{{ _fs_uuid_select }}"
  92. efi:
  93. - device: /dev/vg/root
  94. mount_point: /
  95. fstype: btrfs
  96. uuid: "{{ _fs_uuid_root }}"
  97. - device: /dev/disk/by-partlabel/{{inventory_hostname}}-boot
  98. mount_point: /boot
  99. fstype: btrfs
  100. uuid: "{{ _fs_uuid_boot }}"
  101. - device: /dev/disk/by-partlabel/{{inventory_hostname}}-rescue
  102. mount_point: /boot/rescue
  103. fstype: btrfs
  104. uuid: "{{ _fs_uuid_rescue }}"
  105. - device: /dev/disk/by-partlabel/{{inventory_hostname}}-select
  106. mount_point: /boot/select
  107. fstype: btrfs
  108. uuid: "{{ _fs_uuid_select }}"
  109. - device: /dev/disk/by-partuuid/C12A7328-F81F-11D2-BA4B-00A0C93EC93B
  110. mount_point: /boot/efi
  111. fstype: fat
  112. uuid: C12A7328-F81F-11D2-BA4B-00A0C93EC93B