blob: 5e16000d6da939761f0028ecd98c0a9128186db0 (
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
|
HOSTNAME {{ host_name }}{% if host_domain %}.{{ host_domain }}{% endif %}{{ '' }}
{% if cloud_provider == "hroot" %}
{% if install.disks.primary == "software-raid" %}
{% for raid_member in install.disks.raid.members %}
DRIVE{{ loop.index }} {{ raid_member }}
{% endfor %}
SWRAID 1
SWRAIDLEVEL {{ install.disks.raid.level }}
{% else %}
DRIVE1 {{ install.disks.primary }}
{% endif %}
{% elif cloud_provider == "hcloud" %}
DRIVE1 /dev/sda
{% endif %}
BOOTLOADER grub
{% if (install.efi | default(false)) %}
PART /boot/efi esp {{ hetzner_efi_esp_size }}
{% endif %}
PART /boot ext4 {{ hetzner_boot_size }}
{% set system_lvm_size = install.system_lvm.size | default(hetzner_system_lvm_size_default) %}
PART lvm {{ host_name }} {{ system_lvm_size }}
{% if system_lvm_size != "all" %}
PART /dummy ext4 all
{% endif %}
{% set system_lvm_volumes = install.system_lvm.volumes | default(hetzner_system_lvm_volumes_default) %}
{% for volume in system_lvm_volumes %}
LV {{ host_name }} {{ volume.name }} {{ volume.mountpoint }} {{ volume.filesystem }} {{ volume.size }}
{% endfor %}
IMAGE {{ latest_image.stdout }}
|