summaryrefslogtreecommitdiffstats
path: root/vagrant/installer.sh
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-09-05 03:30:49 -0700
committerVictor Morales <victor.morales@intel.com>2018-09-05 03:30:49 -0700
commitab28924eb17d533185fecfe082c224fc96279621 (patch)
tree9ffde564d24f85f1baa87782a66f3b742d713dde /vagrant/installer.sh
parent6e2857125fdce17a1541f3ca45ee0b988e9ef4de (diff)
Add alternative sources.list file
In order to reduce the traffict during the installation of external packages is possible to configure it to consume a local mirror. This change adds that alternative. Change-Id: I5d7b385171e77afe12ccaad31edd59cf4f0f21fb Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
Diffstat (limited to 'vagrant/installer.sh')
-rwxr-xr-xvagrant/installer.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/vagrant/installer.sh b/vagrant/installer.sh
index 29866a82..b4886f21 100755
--- a/vagrant/installer.sh
+++ b/vagrant/installer.sh
@@ -260,6 +260,11 @@ k8s_info_file=$krd_folder/k8s_info.log
mkdir -p $log_folder
# Install dependencies
+# Setup proxy variables
+if [ -f $krd_folder/sources.list ]; then
+ mv /etc/apt/sources.list /etc/apt/sources.list.backup
+ cp $krd_folder/sources.list /etc/apt/sources.list
+fi
apt-get update
install_k8s
install_addons