# -*- 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' },
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']
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