Merge "Add upload backend implementation"
[multicloud/k8s.git] / vagrant / Vagrantfile
index 7ff18f0..8cfa4e0 100644 (file)
@@ -1,5 +1,13 @@
 # -*- mode: ruby -*-
 # vi: set ft=ruby :
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
 
 box = {
   :virtualbox => { :name => 'elastic/ubuntu-16.04-x86_64', :version => '20180708.0.0' },
@@ -30,7 +38,7 @@ File.open(File.dirname(__FILE__) + "/inventory/hosts.ini", "w") do |inventory_fi
   inventory_file.puts("\n[k8s-cluster:children]\nkube-node\nkube-master")
 end
 
-provider = (ENV['VAGRANT_DEFAULT_PROVIDER'] || :virtualbox).to_sym
+provider = (ENV['VAGRANT_DEFAULT_PROVIDER'] || :libvirt).to_sym
 puts "[INFO] Provider: #{provider} "
 
 if ENV['no_proxy'] != nil or ENV['NO_PROXY']
@@ -108,8 +116,8 @@ Vagrant.configure("2") do |config|
     installer.vm.network :private_network, :ip => "10.10.10.2", :type => :static
     installer.vm.synced_folder '../', '/root/go/src/k8-plugin-multicloud/', type: sync_type
     installer.vm.provision 'shell' do |sh|
-      sh.path =  "installer.sh"
-      sh.args = ['-p', '-v', '-w', '/root/go/src/k8-plugin-multicloud/vagrant']
+      sh.env = {'KRD_PLUGIN_ENABLED': 'true'}
+      sh.path = "main.sh"
     end
   end
 end