diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-04-23 01:24:38 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-04-23 01:24:38 +0200 |
commit | 17077868e615fa7115abdb03a5af4662ab0a3679 (patch) | |
tree | 22cb752792c3410bcfe8ce856b9746cad1ccf8d3 /roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 | |
parent | remove spreadspace k8s-test cluster (diff) |
refactor all install roles ans playbooks to work with new variable install_hostname
Diffstat (limited to 'roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2')
-rw-r--r-- | roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 b/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 index 18e85a80..4220be38 100644 --- a/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 +++ b/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 @@ -1,15 +1,15 @@ -System hostname = {{ hostvars[hostname].host_name }} +System hostname = {{ hostvars[install_hostname].host_name }} -Which network interface do you wish to configure = {{ install_interface | default(hostvars[hostname].network_cooked.primary.interface) }} -{% if 'install_dhcp' in hostvars[hostname] and hostvars[hostname].install_dhcp %} +Which network interface do you wish to configure = {{ install_interface | default(hostvars[install_hostname].network_cooked.primary.interface) }} +{% if 'install_dhcp' in hostvars[install_hostname] and hostvars[install_hostname].install_dhcp %} IPv4 address = dhcp {% else %} -IPv4 address = {{ hostvars[hostname].network_cooked.primary.ip }} -Netmask = {{ hostvars[hostname].network_cooked.primary.mask }} -Default IPv4 route = {{ hostvars[hostname].network_cooked.primary.gateway }} +IPv4 address = {{ hostvars[install_hostname].network_cooked.primary.ip }} +Netmask = {{ hostvars[install_hostname].network_cooked.primary.mask }} +Default IPv4 route = {{ hostvars[install_hostname].network_cooked.primary.gateway }} {% endif %} -DNS domain name = {{ hostvars[hostname].network_cooked.domain }} -DNS nameservers = {{ hostvars[hostname].network_cooked.nameservers | join(' ') }} +DNS domain name = {{ hostvars[install_hostname].network_cooked.domain }} +DNS nameservers = {{ hostvars[install_hostname].network_cooked.nameservers | join(' ') }} {% if obsd_autoinstall_serial_device is defined %} Change the default console to {{ obsd_autoinstall_serial_device }} = yes |