diff --git a/.gitignore b/.gitignore index 7b9b5fe32d37..dba0b2fa4faf 100644 --- a/.gitignore +++ b/.gitignore @@ -5,9 +5,10 @@ tools/openapispec/openapispec **/bin bin/* .vagrant -cluster/vagrant/.kubeconfig -cluster/vagrant/.kubectl -cluster/vagrant/.oc +cluster/vagrant-kubernetes/.kubeconfig +cluster/vagrant-kubernetes/.kubectl +cluster/vagrant-openshift/.kubeconfig +cluster/vagrant-openshift/.oc cluster/.console.vv build-tools/desc/desc hack/config-local.sh @@ -19,7 +20,8 @@ hack/gen-swagger-doc/*.adoc hack/gen-swagger-doc/*.md hack/gen-swagger-doc/html5 hack/config-provider-local.sh -hack/config-provider-vagrant.sh +hack/config-provider-vagrant-kubernetes.sh +hack/config-provider-vagrant-openshift.sh cluster/local/certs **.swp **.pem diff --git a/Vagrantfile b/Vagrantfile index 9ad7d081bea0..dc773e5369be 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,7 +10,7 @@ Calling 'vagrant up' directly is not supported. Instead, please run the followi END end -$deploy_openshift = ENV['DEPLOY_OPENSHIFT'] == 'true' +$provider = ENV['PROVIDER'] || "vagrant-kubernetes" $use_nfs = ENV['VAGRANT_USE_NFS'] == 'true' $use_rng = ENV['VAGRANT_USE_RNG'] == 'true' $cache_docker = ENV['VAGRANT_CACHE_DOCKER'] == 'true' @@ -31,6 +31,15 @@ end $master_ip = $config["master_ip"] $network_provider = $config["network_provider"] +$common_setup = <