summaryrefslogtreecommitdiff
path: root/roles/installer/debian/preseed/templates/partman_raid_config.j2
blob: 866b3b9f5edfbe6438c0bc1941f6a3b9598fef1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
d-i partman-auto/disk string /dev/sda /dev/sdb
d-i grub-installer/bootdev string /dev/sda /dev/sdb

d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true

d-i partman-auto/method string raid
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-auto-lvm/new_vg_name string {{ hostvars[install_hostname].host_name }}
d-i partman-auto-lvm/guided_size string max

d-i partman/choose_label string dos
d-i partman/default_label string dos
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto/expert_recipe string                                     \
      boot-root ::                                                        \
              256 512 256 raid                                            \
                      $lvmignore{ } $primary{ } method{ raid }            \
              .                                                           \
              1000 10000 -1 raid                                          \
                      $lvmignore{ } $primary{ } method{ raid }            \
              .                                                           \
              15360 10000 20480 ext4                                      \
                      $defaultignore{ } $lvmok{ }                         \
                      in_vg{ {{ hostvars[install_hostname].host_name }} } \
                      method{ format } format{ }                          \
                      use_filesystem{ } filesystem{ ext4 }                \
                      mountpoint{ / }                                     \
              .                                                           \
              768 10000 768 ext4                                          \
                      $defaultignore{ } $lvmok{ }                         \
                      in_vg{ {{ hostvars[install_hostname].host_name }} } \
                      method{ format } format{ }                          \
                      use_filesystem{ } filesystem{ ext4 }                \
                      mountpoint{ /var/log }                              \
                      options/nodev{ nodev } options/noatime{ noatime }   \
                      options/noexec{ noexec }                            \
              .                                                           \
              20480 10000 20480 ext4                                      \
                      $defaultignore{ } $lvmok{ }                         \
                      in_vg{ {{ hostvars[install_hostname].host_name }} } \
                      method{ format } format{ }                          \
                      use_filesystem{ } filesystem{ ext4 }                \
                      mountpoint{ /home }                                 \
              .                                                           \
              16 20000 -1 ext4                                            \
                      $defaultignore{ } $lvmok{ }                         \
                      in_vg{ {{ hostvars[install_hostname].host_name }} } \
                      lv_name{ dummy }                                    \
              .

d-i partman-auto-raid/recipe string \
    1 2 0 ext4 /boot                \
          /dev/sda1#/dev/sdb1       \
    .                               \
    1 2 0 lvm -                     \
          /dev/sda2#/dev/sdb2       \
    .

d-i partman-basicfilesystems/no_swap true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish