From: Ian Jackson Subject: [OSSTEST PATCH 09/32] Debian mirrors: Support proxy, and default to ftp.debian.org if specified Date: Tue, 24 Mar 2015 19:02:32 +0000 Message-ID: <1427223775-8592-10-git-send-email-ian.jackson@eu.citrix.com> References: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaU7B-000146-7H for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 19:03:49 +0000 In-Reply-To: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Jackson --- Osstest.pm | 3 +++ Osstest/Debian.pm | 1 + README | 7 ++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Osstest.pm b/Osstest.pm index 22dbc8b..aaaaf7a 100644 --- a/Osstest.pm +++ b/Osstest.pm @@ -76,6 +76,7 @@ our %c = qw( $c{$_}='' foreach qw( DebianPreseed + DebianMirrorProxy TftpPxeTemplatesReal ); @@ -186,6 +187,8 @@ sub readglobalconfig () { $c{GuestDebianSuite} ||= $c{DebianSuite}; $c{DefaultBranch} ||= 'xen-unstable'; + + $c{DebianMirrorHost} ||= 'ftp.debian.org' if $c{DebianMirrorProxy}; } sub augmentconfigdefaults { diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 7633b51..f419f22 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -562,6 +562,7 @@ d-i finish-install/reboot_in_progress note d-i cdrom-detect/eject boolean false d-i mirror/http/hostname string $c{DebianMirrorHost} +d-i mirror/http/proxy string $c{DebianMirrorProxy} d-i mirror/http/directory string /$c{DebianMirrorSubpath} d-i apt-setup/use_mirror boolean yes d-i apt-setup/another boolean false diff --git a/README b/README index e780762..9634185 100644 --- a/README +++ b/README @@ -291,7 +291,12 @@ NetNameservers DebianMirrorHost Domain name or address of the Debian mirror to use. Set DebianMirrorSubpath to the path inside the mirror if - your mirror isn't at http:///debian/ + your mirror isn't at http:///debian/ . + Defaults to ftp.debian.org if DebianMirrorProxy is set. + +DebianMirrorProxy + The apt proxy to specify for Debian (and derivatives), + eg http://apt-cacher:3142/ . TestHost TestHost_ -- 1.7.10.4