summaryrefslogtreecommitdiff
path: root/roles/cloud-install/templates/hetzner_installimage.conf.j2
blob: 801d448f111ac490c5bec558249c1cd3399892c7 (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
HOSTNAME {{ host_name }}
{% if hetzner_disk_setup == "nvme_raid" %}
DRIVE1 /dev/nvme0n1
DRIVE2 /dev/nvme1n1
SWRAID 1
SWRAIDLEVEL 1
{% elif hetzner_disk_setup == "sata_raid" %}
DRIVE1 /dev/sda
DRIVE2 /dev/sdb
SWRAID 1
SWRAIDLEVEL 1
{% elif hetzner_disk_setup == "hcloud" %}
DRIVE1 /dev/sda
{% endif %}
BOOTLOADER grub
PART /boot  ext4     512M
PART lvm  {{ host_name }}  {{ hetzner_root_lvm_size }}
{% if hetzner_root_lvm_size != "all" %}
PART /dummy ext4     all
{% endif %}
LV {{ host_name }} root     /         ext4  2560M
LV {{ host_name }} var      /var      ext4  1280M
LV {{ host_name }} var+log  /var/log  ext4   768M
IMAGE {{ latest_image.stdout }}