diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-07-10 17:21:54 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-07-10 17:21:54 +0200 |
commit | 3f1364557e1753ca0e8f2efcec9087516f4e0cbe (patch) | |
tree | c4fa61852fd82d8d9ac18cb851f4292c0051efe9 /roles/preseed | |
parent | ch-router: fix firewall script (diff) |
added new jumphost
Diffstat (limited to 'roles/preseed')
4 files changed, 4 insertions, 4 deletions
diff --git a/roles/preseed/templates/preseed_debian-buster.cfg.j2 b/roles/preseed/templates/preseed_debian-buster.cfg.j2 index 7dbeb680..6e9f4e47 100644 --- a/roles/preseed/templates/preseed_debian-buster.cfg.j2 +++ b/roles/preseed/templates/preseed_debian-buster.cfg.j2 @@ -10,7 +10,7 @@ d-i keyboard-configuration/xkb-keymap select us d-i hw-detect/load_firmware boolean false d-i netcfg/choose_interface select {{ install_interface | default(hostvars[hostname].network_cooked.primary.interface) }} -{% if install_dhcp is defined and install_dhcp %} +{% if 'install_dhcp' in hostvars[hostname] and hostvars[hostname].install_dhcp %} d-i netcfg/disable_dhcp boolean false d-i netcfg/disable_autoconfig boolean false {% else %} diff --git a/roles/preseed/templates/preseed_debian-stretch.cfg.j2 b/roles/preseed/templates/preseed_debian-stretch.cfg.j2 index d99a7626..69a6ca5b 100644 --- a/roles/preseed/templates/preseed_debian-stretch.cfg.j2 +++ b/roles/preseed/templates/preseed_debian-stretch.cfg.j2 @@ -10,7 +10,7 @@ d-i keyboard-configuration/xkb-keymap select us d-i hw-detect/load_firmware boolean false d-i netcfg/choose_interface select {{ install_interface | default(hostvars[hostname].network_cooked.primary.interface) }} -{% if install_dhcp is defined and install_dhcp %} +{% if 'install_dhcp' in hostvars[hostname] and hostvars[hostname].install_dhcp %} d-i netcfg/disable_dhcp boolean false d-i netcfg/disable_autoconfig boolean false {% else %} diff --git a/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2 b/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2 index 9d0b13ee..f4b0fff1 100644 --- a/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2 +++ b/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2 @@ -14,7 +14,7 @@ d-i keyboard-configuration/layoutcode string us d-i hw-detect/load_firmware boolean false d-i netcfg/choose_interface select {{ install_interface | default(hostvars[hostname].network_cooked.primary.interface) }} -{% if install_dhcp is defined and install_dhcp %} +{% if 'install_dhcp' in hostvars[hostname] and hostvars[hostname].install_dhcp %} d-i netcfg/disable_dhcp boolean false d-i netcfg/disable_autoconfig boolean false {% else %} diff --git a/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2 b/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2 index 9e18c2ee..7d053a5d 100644 --- a/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2 +++ b/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2 @@ -14,7 +14,7 @@ d-i keyboard-configuration/layoutcode string us d-i hw-detect/load_firmware boolean false d-i netcfg/choose_interface select {{ install_interface | default(hostvars[hostname].network_cooked.primary.interface) }} -{% if install_dhcp is defined and install_dhcp %} +{% if 'install_dhcp' in hostvars[hostname] and hostvars[hostname].install_dhcp %} d-i netcfg/disable_dhcp boolean false d-i netcfg/disable_autoconfig boolean false {% else %} |