summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
l---------vagrant/installer1
-rwxr-xr-xvagrant/installer.sh5
3 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index b38d6e29..e6cf3268 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,5 +30,6 @@ src/k8splugin/plugins/**/*.so
vagrant/inventory/hosts.ini
vagrant/inventory/group_vars/all.yml
vagrant/config/pdf.yml
+vagrant/sources.list
*.retry
*.vdi
diff --git a/vagrant/installer b/vagrant/installer
new file mode 120000
index 00000000..2b6cb163
--- /dev/null
+++ b/vagrant/installer
@@ -0,0 +1 @@
+installer.sh \ No newline at end of file
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