From 9fffd8c1b1cae57ef6e7f28626ea6a917638b90a Mon Sep 17 00:00:00 2001 From: Lukianov Artyom Date: Sun, 7 Jan 2018 15:44:13 +0200 Subject: [PATCH] Rebase on master Signed-off-by: Lukianov Artyom --- .gitignore | 10 ++-- Vagrantfile | 30 +++++------ cluster/build.sh | 2 +- cluster/deploy.sh | 6 ++- cluster/down.sh | 2 +- cluster/kubectl.sh | 2 +- cluster/up.sh | 2 +- cluster/vagrant-kubernetes/README.md | 5 ++ .../provider.sh | 14 ++--- .../setup_common.sh} | 0 .../setup_master.sh} | 2 +- .../setup_node.sh} | 2 +- .../{vagrant => vagrant-openshift}/README.md | 2 +- cluster/vagrant-openshift/provider.sh | 53 +++++++++++++++++++ cluster/vagrant-openshift/setup_common.sh | 36 +++++++++++++ .../setup_master.sh} | 36 ++++++++++--- cluster/vagrant-openshift/setup_node.sh | 23 ++++++++ cluster/vagrant/setup_common.sh | 16 ------ cluster/vagrant/setup_openshift_common.sh | 6 --- hack/config.sh | 2 +- images/libvirt-kubevirt/Dockerfile | 1 + 21 files changed, 188 insertions(+), 64 deletions(-) create mode 100644 cluster/vagrant-kubernetes/README.md rename cluster/{vagrant => vagrant-kubernetes}/provider.sh (75%) rename cluster/{vagrant/setup_kubernetes_common.sh => vagrant-kubernetes/setup_common.sh} (100%) rename cluster/{vagrant/setup_kubernetes_master.sh => vagrant-kubernetes/setup_master.sh} (97%) rename cluster/{vagrant/setup_kubernetes_node.sh => vagrant-kubernetes/setup_node.sh} (96%) rename cluster/{vagrant => vagrant-openshift}/README.md (75%) create mode 100644 cluster/vagrant-openshift/provider.sh create mode 100644 cluster/vagrant-openshift/setup_common.sh rename cluster/{vagrant/setup_openshift_master.sh => vagrant-openshift/setup_master.sh} (56%) create mode 100644 cluster/vagrant-openshift/setup_node.sh delete mode 100644 cluster/vagrant/setup_common.sh delete mode 100644 cluster/vagrant/setup_openshift_common.sh 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 = <