summaryrefslogtreecommitdiff
path: root/roles/cloud-install/templates/hetzner_installimage.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cloud-install/templates/hetzner_installimage.conf.j2')
-rw-r--r--roles/cloud-install/templates/hetzner_installimage.conf.j211
1 files changed, 7 insertions, 4 deletions
diff --git a/roles/cloud-install/templates/hetzner_installimage.conf.j2 b/roles/cloud-install/templates/hetzner_installimage.conf.j2
index 4c834499..801d448f 100644
--- a/roles/cloud-install/templates/hetzner_installimage.conf.j2
+++ b/roles/cloud-install/templates/hetzner_installimage.conf.j2
@@ -1,20 +1,23 @@
HOSTNAME {{ host_name }}
-{% if hetzner_disk_config == "nvme_raid" %}
+{% if hetzner_disk_setup == "nvme_raid" %}
DRIVE1 /dev/nvme0n1
DRIVE2 /dev/nvme1n1
SWRAID 1
SWRAIDLEVEL 1
-{% elif hetzner_disk_config == "sata_raid" %}
+{% elif hetzner_disk_setup == "sata_raid" %}
DRIVE1 /dev/sda
DRIVE2 /dev/sdb
SWRAID 1
SWRAIDLEVEL 1
-{% elif hetzner_disk_config == "hcloud" %}
+{% elif hetzner_disk_setup == "hcloud" %}
DRIVE1 /dev/sda
{% endif %}
BOOTLOADER grub
PART /boot ext4 512M
-PART lvm {{ host_name }} all
+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