diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-04-14 19:09:49 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-04-14 19:09:49 +0200 |
commit | a93773afc2e512f5a6c04326825df17c8899fd43 (patch) | |
tree | 6134809cfa2d045b9041f8a75e66368076a5061f /roles/cloud-install/templates/hetzner_installimage.conf.j2 | |
parent | make hetzner postinst script nicer (diff) |
hetzner smaller root lv
Diffstat (limited to 'roles/cloud-install/templates/hetzner_installimage.conf.j2')
-rw-r--r-- | roles/cloud-install/templates/hetzner_installimage.conf.j2 | 11 |
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 |