diff options
Diffstat (limited to 'roles/cloud/install/templates/hetzner_installimage.conf.j2')
-rw-r--r-- | roles/cloud/install/templates/hetzner_installimage.conf.j2 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/cloud/install/templates/hetzner_installimage.conf.j2 b/roles/cloud/install/templates/hetzner_installimage.conf.j2 index e3cd4c4e..acdf42c4 100644 --- a/roles/cloud/install/templates/hetzner_installimage.conf.j2 +++ b/roles/cloud/install/templates/hetzner_installimage.conf.j2 @@ -1,25 +1,25 @@ HOSTNAME {{ host_name }}{% if host_domain %}.{{ host_domain }}{% endif %}{{ '' }} {% if cloud_provider == "hroot" %} -{% if install_cooked.disks.primary == "software-raid" %} -{% for raid_member in install_cooked.disks.raid.members %} +{% if install.disks.primary == "software-raid" %} +{% for raid_member in install.disks.raid.members %} DRIVE{{ loop.index }} {{ raid_member }} {% endfor %} SWRAID 1 -SWRAIDLEVEL {{ install_cooked.disks.raid.level }} +SWRAIDLEVEL {{ install.disks.raid.level }} {% else %} -DRIVE1 {{ install_cooked.disks.primary }} +DRIVE1 {{ install.disks.primary }} {% endif %} {% elif cloud_provider == "hcloud" %} DRIVE1 /dev/sda {% endif %} BOOTLOADER grub PART /boot ext4 {{ hetzner_boot_size }} -{% set system_lvm_size = install_cooked.system_lvm.size | default(hetzner_system_lvm_size_default) %} +{% 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_cooked.system_lvm.volumes | default(hetzner_system_lvm_volumes_default) %} +{% 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 %} |