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