@@ -8,5 +8,5 @@ | |||||
- name: set crypt profile vars | - name: set crypt profile vars | ||||
set_fact: | set_fact: | ||||
dmcrypt_devices: "{{_partitioning_crypt_profile.dmcrypt_devices}}" | dmcrypt_devices: "{{_partitioning_crypt_profile.dmcrypt_devices}}" | ||||
system_device: "{{_partitioning_crypt_profile.system_device}}" | |||||
data_device: "{{_partitioning_crypt_profile.data_device}}" | |||||
debian_boot_packages: "{{ debian_boot_packages | union(_partitioning_crypt_profile.debian_boot_packages) }}" | debian_boot_packages: "{{ debian_boot_packages | union(_partitioning_crypt_profile.debian_boot_packages) }}" |
@@ -15,5 +15,5 @@ | |||||
mdraid_devices: "{{_partitioning_raid_profile.mdraid_devices}}" | mdraid_devices: "{{_partitioning_raid_profile.mdraid_devices}}" | ||||
boot_device: "{{_partitioning_raid_profile.boot_device}}" | boot_device: "{{_partitioning_raid_profile.boot_device}}" | ||||
rescue_device: "{{_partitioning_raid_profile.rescue_device}}" | rescue_device: "{{_partitioning_raid_profile.rescue_device}}" | ||||
system_device: "{{_partitioning_raid_profile.system_device}}" | |||||
data_device: "{{_partitioning_raid_profile.data_device}}" | |||||
debian_boot_packages: "{{ debian_boot_packages | union(_partitioning_raid_profile.debian_boot_packages) }}" | debian_boot_packages: "{{ debian_boot_packages | union(_partitioning_raid_profile.debian_boot_packages) }}" |
@@ -19,11 +19,11 @@ partitions: | |||||
typecode: 8300 | typecode: 8300 | ||||
usage: rescue | usage: rescue | ||||
- prefix: "{{inventory_hostname_short}}-" | - prefix: "{{inventory_hostname_short}}-" | ||||
suffix: -system | |||||
suffix: -data | |||||
start: 2GiB | start: 2GiB | ||||
end: "{{last_partition_end}}" | end: "{{last_partition_end}}" | ||||
typecode: 8300 | typecode: 8300 | ||||
usage: system | |||||
usage: data | |||||
debian_boot_packages: | debian_boot_packages: | ||||
- grub-pc | - grub-pc | ||||
@@ -12,7 +12,7 @@ partitions: | |||||
- type: primary | - type: primary | ||||
start: 2GiB | start: 2GiB | ||||
end: "{{last_partition_end}}" | end: "{{last_partition_end}}" | ||||
usage: system | |||||
usage: data | |||||
debian_boot_packages: | debian_boot_packages: | ||||
- grub-pc | - grub-pc | ||||
@@ -22,11 +22,11 @@ partitions: | |||||
typecode: 8300 | typecode: 8300 | ||||
usage: rescue | usage: rescue | ||||
- prefix: "{{inventory_hostname_short}}-" | - prefix: "{{inventory_hostname_short}}-" | ||||
suffix: -system | |||||
suffix: -data | |||||
start: 2GiB | start: 2GiB | ||||
end: "{{last_partition_end}}" | end: "{{last_partition_end}}" | ||||
typecode: 8300 | typecode: 8300 | ||||
usage: system | |||||
usage: data | |||||
debian_boot_packages: | debian_boot_packages: | ||||
- efibootmgr | - efibootmgr | ||||
@@ -1,11 +1,11 @@ | |||||
dmcrypt_devices: | dmcrypt_devices: | ||||
- device: "{{ system_device }}" | |||||
name: "{{inventory_hostname}}-crypt0" | |||||
- device: "{{ data_device }}" | |||||
name: "{{inventory_hostname_short}}-crypt0" | |||||
cipher: aes-xts-plain64 | cipher: aes-xts-plain64 | ||||
hash: sha512 | hash: sha512 | ||||
key_size: 512 | |||||
key_size: 256 | |||||
system_device: /dev/mapper/{{inventory_hostname}}-crypt0 | |||||
data_device: /dev/mapper/{{inventory_hostname_short}}-crypt0 | |||||
debian_boot_packages: | debian_boot_packages: | ||||
- cryptsetup | - cryptsetup |
@@ -1,5 +1,5 @@ | |||||
dmcrypt_devices: [] | dmcrypt_devices: [] | ||||
system_device: "{{ system_device }}" | |||||
data_device: "{{ data_device }}" | |||||
debian_boot_packages: [] | debian_boot_packages: [] |
@@ -2,7 +2,7 @@ | |||||
volume_groups: | volume_groups: | ||||
- name: "{{primary_volume_group_name}}" | - name: "{{primary_volume_group_name}}" | ||||
devices: | devices: | ||||
- "{{ system_device }}" | |||||
- "{{ data_device }}" | |||||
logical_volumes: | logical_volumes: | ||||
- name: root | - name: root | ||||
@@ -5,13 +5,13 @@ mdraid_devices: | |||||
- device: /dev/md/rescue | - device: /dev/md/rescue | ||||
level: 1 | level: 1 | ||||
devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='rescue'][].device\") | list }}" | devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='rescue'][].device\") | list }}" | ||||
- device: /dev/md/system | |||||
- device: /dev/md/data | |||||
level: 1 | level: 1 | ||||
devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='system'][].device\") | list }}" | |||||
devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='data'][].device\") | list }}" | |||||
boot_device: /dev/md/boot | boot_device: /dev/md/boot | ||||
rescue_device: /dev/md/rescue | rescue_device: /dev/md/rescue | ||||
system_device: /dev/md/system | |||||
data_device: /dev/md/data | |||||
debian_boot_packages: | debian_boot_packages: | ||||
- mdadm | - mdadm |
@@ -2,6 +2,6 @@ mdraid_devices: [] | |||||
boot_device: "{{ hard_disks | json_query(\"[].partitions[?usage=='boot'][].device\") | first }}" | boot_device: "{{ hard_disks | json_query(\"[].partitions[?usage=='boot'][].device\") | first }}" | ||||
rescue_device: "{{ hard_disks | json_query(\"[].partitions[?usage=='rescue'][].device\") | first }}" | rescue_device: "{{ hard_disks | json_query(\"[].partitions[?usage=='rescue'][].device\") | first }}" | ||||
system_device: "{{ hard_disks | json_query(\"[].partitions[?usage=='system'][].device\") | first }}" | |||||
data_device: "{{ hard_disks | json_query(\"[].partitions[?usage=='data'][].device\") | first }}" | |||||
debian_boot_packages: [] | debian_boot_packages: [] |
@@ -5,13 +5,13 @@ mdraid_devices: | |||||
- device: /dev/md/rescue | - device: /dev/md/rescue | ||||
level: 1 | level: 1 | ||||
devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='rescue'][].device\") | list }}" | devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='rescue'][].device\") | list }}" | ||||
- device: /dev/md/system | |||||
- device: /dev/md/data | |||||
level: 0 | level: 0 | ||||
devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='system'][].device\") | list }}" | |||||
devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='data'][].device\") | list }}" | |||||
boot_device: /dev/md/boot | boot_device: /dev/md/boot | ||||
rescue_device: /dev/md/rescue | rescue_device: /dev/md/rescue | ||||
system_device: /dev/md/system | |||||
data_device: /dev/md/data | |||||
debian_boot_packages: | debian_boot_packages: | ||||
- mdadm | - mdadm |