summaryrefslogtreecommitdiff
path: root/roles/installer/openbsd
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-21 04:11:47 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-21 04:11:47 +0200
commit742ab1e5e72c4f7b6678cf586309d6d98d96272d (patch)
tree2e3b0e54ee28c0b5a8c7849be61ca511d28d4e97 /roles/installer/openbsd
parentinitial tests with new network config (diff)
further improved network config
Diffstat (limited to 'roles/installer/openbsd')
-rw-r--r--roles/installer/openbsd/autoinstall/templates/auto_install.conf.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 b/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2
index 6989d7e0..cf15baff 100644
--- a/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2
+++ b/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2
@@ -4,8 +4,8 @@ Which network interface do you wish to configure = {{ install_interface | defaul
{% if 'install_dhcp' in hostvars[install_hostname] and hostvars[install_hostname].install_dhcp %}
IPv4 address = dhcp
{% else %}
-IPv4 address = {{ hostvars[install_hostname].network_cooked.primary.ip }}
-Netmask = {{ hostvars[install_hostname].network_cooked.primary.mask }}
+IPv4 address = {{ hostvars[install_hostname].network_cooked.primary.prefix | ipaddr('address') }}
+Netmask = {{ hostvars[install_hostname].network_cooked.primary.prefix | ipaddr('netmask') }}
Default IPv4 route = {{ hostvars[install_hostname].network_cooked.primary.gateway }}
{% endif %}
DNS domain name = {{ hostvars[install_hostname].network_cooked.domain }}