From 7d92af47eda7be65b307a285e7ef4a25d53158d9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 28 May 2024 23:24:15 +0200 Subject: ch-cm4-sensor: make install in iot possible --- .../installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'roles/installer/ubuntu') diff --git a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 index 9911f654..af349e5c 100644 --- a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 +++ b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 @@ -19,10 +19,16 @@ autoinstall: {% else %} addresses: - {{ network.primary.address }} - gateway4: {{ network.primary.gateway }} +{% if 'gateway' in network %} + routes: + - to: default + via: {{ network.primary.gateway }} +{% endif %} {% if (network.nameservers | default([]) | length) > 0 %} nameservers: - search: [ {{ host_domain }} ] +{% if 'domain' in network %} + search: [ {{ network.domain }} ] +{% endif %} addresses: [ {{ network.nameservers | join(', ') }} ] {% endif %} {% endif %} -- cgit v1.2.3