From a9ae6e7d0731f19cf5d01a429a5b5b5b2e7e5d04 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 15 Sep 2020 20:39:22 +0200 Subject: improve handling of apt-repo providers --- .../installer/debian/preseed/templates/preseed_debian-jessie.cfg.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'roles/installer/debian/preseed/templates/preseed_debian-jessie.cfg.j2') diff --git a/roles/installer/debian/preseed/templates/preseed_debian-jessie.cfg.j2 b/roles/installer/debian/preseed/templates/preseed_debian-jessie.cfg.j2 index bb275e98..cc1f5037 100644 --- a/roles/installer/debian/preseed/templates/preseed_debian-jessie.cfg.j2 +++ b/roles/installer/debian/preseed/templates/preseed_debian-jessie.cfg.j2 @@ -31,8 +31,8 @@ d-i netcfg/wireless_wep string d-i mirror/country string manual -d-i mirror/http/hostname string archive.debian.org -d-i mirror/http/directory string /debian +d-i mirror/http/hostname string {{ apt_repo_providers[hostvars[install_hostname].apt_repo_provider].debian_archive.host }} +d-i mirror/http/directory string {{ apt_repo_providers[hostvars[install_hostname].apt_repo_provider].debian_archive.path }} d-i mirror/http/proxy string @@ -51,6 +51,7 @@ d-i clock-setup/ntp boolean false d-i base-installer/install-recommends boolean false d-i apt-setup/security_host string +#d-i apt-setup/security_host string tasksel tasksel/first multiselect d-i pkgsel/include string openssh-server {{ hostvars[install_hostname].python_basename }} {{ hostvars[install_hostname].python_basename }}-apt -- cgit v1.2.3