summaryrefslogtreecommitdiff
path: root/roles/installer/debian/preseed/templates/preseed_debian-stretch.cfg.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-21 20:21:14 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-21 20:21:14 +0200
commit7a0c203380731eaaae03fca8de71cdf9094b0120 (patch)
treeb9d9a1fd34dce7d259c6a1133b74c0cc36c1df8f /roles/installer/debian/preseed/templates/preseed_debian-stretch.cfg.j2
parentfurther improved network config (diff)
address vs prefix
Diffstat (limited to 'roles/installer/debian/preseed/templates/preseed_debian-stretch.cfg.j2')
-rw-r--r--roles/installer/debian/preseed/templates/preseed_debian-stretch.cfg.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/installer/debian/preseed/templates/preseed_debian-stretch.cfg.j2 b/roles/installer/debian/preseed/templates/preseed_debian-stretch.cfg.j2
index 0896c569..3528d682 100644
--- a/roles/installer/debian/preseed/templates/preseed_debian-stretch.cfg.j2
+++ b/roles/installer/debian/preseed/templates/preseed_debian-stretch.cfg.j2
@@ -16,8 +16,8 @@ d-i netcfg/disable_autoconfig boolean false
{% else %}
d-i netcfg/disable_dhcp boolean true
d-i netcfg/disable_autoconfig boolean true
-d-i netcfg/get_ipaddress string {{ hostvars[install_hostname].network_cooked.primary.prefix | ipaddr('address') }}
-d-i netcfg/get_netmask string {{ hostvars[install_hostname].network_cooked.primary.prefix | ipaddr('netmask') }}
+d-i netcfg/get_ipaddress string {{ hostvars[install_hostname].network_cooked.primary.address | ipaddr('address') }}
+d-i netcfg/get_netmask string {{ hostvars[install_hostname].network_cooked.primary.address | ipaddr('netmask') }}
d-i netcfg/get_gateway string {{ hostvars[install_hostname].network_cooked.primary.gateway }}
d-i netcfg/get_nameservers string {{ hostvars[install_hostname].network_cooked.nameservers | join(' ') }}
d-i netcfg/confirm_static boolean true