瀏覽代碼

current

master
父節點
當前提交
21cbe767c3
共有 11 個檔案被更改,包括 20 行新增20 行删除
  1. +1
    -1
      tasks/crypt_profile.yml
  2. +1
    -1
      tasks/raid_profile.yml
  3. +2
    -2
      vars/base_profiles/bios-gpt.yml
  4. +1
    -1
      vars/base_profiles/bios-mbr.yml
  5. +2
    -2
      vars/base_profiles/efi.yml
  6. +4
    -4
      vars/crypt_profiles/dmcrypt-luks.yml
  7. +1
    -1
      vars/crypt_profiles/none.yml
  8. +1
    -1
      vars/profile.yml
  9. +3
    -3
      vars/raid_profiles/mirror.yml
  10. +1
    -1
      vars/raid_profiles/single.yml
  11. +3
    -3
      vars/raid_profiles/strip.yml

+ 1
- 1
tasks/crypt_profile.yml 查看文件

@@ -8,5 +8,5 @@
- name: set crypt profile vars
set_fact:
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) }}"

+ 1
- 1
tasks/raid_profile.yml 查看文件

@@ -15,5 +15,5 @@
mdraid_devices: "{{_partitioning_raid_profile.mdraid_devices}}"
boot_device: "{{_partitioning_raid_profile.boot_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) }}"

+ 2
- 2
vars/base_profiles/bios-gpt.yml 查看文件

@@ -19,11 +19,11 @@ partitions:
typecode: 8300
usage: rescue
- prefix: "{{inventory_hostname_short}}-"
suffix: -system
suffix: -data
start: 2GiB
end: "{{last_partition_end}}"
typecode: 8300
usage: system
usage: data

debian_boot_packages:
- grub-pc


+ 1
- 1
vars/base_profiles/bios-mbr.yml 查看文件

@@ -12,7 +12,7 @@ partitions:
- type: primary
start: 2GiB
end: "{{last_partition_end}}"
usage: system
usage: data

debian_boot_packages:
- grub-pc


+ 2
- 2
vars/base_profiles/efi.yml 查看文件

@@ -22,11 +22,11 @@ partitions:
typecode: 8300
usage: rescue
- prefix: "{{inventory_hostname_short}}-"
suffix: -system
suffix: -data
start: 2GiB
end: "{{last_partition_end}}"
typecode: 8300
usage: system
usage: data

debian_boot_packages:
- efibootmgr


+ 4
- 4
vars/crypt_profiles/dmcrypt-luks.yml 查看文件

@@ -1,11 +1,11 @@
dmcrypt_devices:
- device: "{{ system_device }}"
name: "{{inventory_hostname}}-crypt0"
- device: "{{ data_device }}"
name: "{{inventory_hostname_short}}-crypt0"
cipher: aes-xts-plain64
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:
- cryptsetup

+ 1
- 1
vars/crypt_profiles/none.yml 查看文件

@@ -1,5 +1,5 @@
dmcrypt_devices: []

system_device: "{{ system_device }}"
data_device: "{{ data_device }}"

debian_boot_packages: []

+ 1
- 1
vars/profile.yml 查看文件

@@ -2,7 +2,7 @@
volume_groups:
- name: "{{primary_volume_group_name}}"
devices:
- "{{ system_device }}"
- "{{ data_device }}"

logical_volumes:
- name: root


+ 3
- 3
vars/raid_profiles/mirror.yml 查看文件

@@ -5,13 +5,13 @@ mdraid_devices:
- device: /dev/md/rescue
level: 1
devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='rescue'][].device\") | list }}"
- device: /dev/md/system
- device: /dev/md/data
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
rescue_device: /dev/md/rescue
system_device: /dev/md/system
data_device: /dev/md/data

debian_boot_packages:
- mdadm

+ 1
- 1
vars/raid_profiles/single.yml 查看文件

@@ -2,6 +2,6 @@ mdraid_devices: []

boot_device: "{{ hard_disks | json_query(\"[].partitions[?usage=='boot'][].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: []

+ 3
- 3
vars/raid_profiles/strip.yml 查看文件

@@ -5,13 +5,13 @@ mdraid_devices:
- device: /dev/md/rescue
level: 1
devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='rescue'][].device\") | list }}"
- device: /dev/md/system
- device: /dev/md/data
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
rescue_device: /dev/md/rescue
system_device: /dev/md/system
data_device: /dev/md/data

debian_boot_packages:
- mdadm

Loading…
取消
儲存