diff options
Diffstat (limited to 'roles/installer/ubuntu')
-rw-r--r-- | roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 index fd78bc4d..8857cf2d 100644 --- a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 +++ b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 @@ -19,9 +19,11 @@ autoinstall: {% else %} addresses: - {{ network.primary.address }} +{% if 'gataway' in network.primary %} routes: - to: default via: {{ network.primary.gateway }} +{% endif %} {% if (network.nameservers | default([]) | length) > 0 %} nameservers: search: [ {{ network.domain }} ] |