From fb1f0654a2a632061fd3fe57d0cfb84fa5911037 Mon Sep 17 00:00:00 2001 From: Merritt Krakowitzer Date: Wed, 8 Oct 2014 10:00:41 +0200 Subject: [PATCH] On Debian/Ubuntu systems, the proxy is not being set early enough. As part of validate method, apt-get update runs and packages may need to be installed. This prevents us from provisioning beaker test vm's on networks that do not have any internet access other than via a proxy. --- lib/beaker/hypervisor.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/beaker/hypervisor.rb b/lib/beaker/hypervisor.rb index 8f82c3a6a0..d4cae204dd 100644 --- a/lib/beaker/hypervisor.rb +++ b/lib/beaker/hypervisor.rb @@ -96,9 +96,6 @@ def configure if @options[:add_el_extras] add_el_extras(@hosts, @options) end - if @options[:package_proxy] - package_proxy(@hosts, @options) - end if @options[:disable_iptables] disable_iptables @hosts, @options end @@ -106,6 +103,10 @@ def configure #Default validation steps to be run for a given hypervisor def validate + if @options[:package_proxy] + package_proxy(@hosts, @options) + @options.delete(:package_proxy) + end if @options[:validate] validate_host(@hosts, @options) end