From 56a9c7a802057c6eed7eb776d1cd5315d75628d8 Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Sat, 18 Apr 2020 15:09:35 +0200 Subject: [PATCH] Add Vagrant CI (#5487) --- .gitlab-ci/vagrant.yml | 21 +++++++++++++++++++++ Vagrantfile | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/vagrant.yml b/.gitlab-ci/vagrant.yml index b374843a7..0d92e19d5 100644 --- a/.gitlab-ci/vagrant.yml +++ b/.gitlab-ci/vagrant.yml @@ -14,3 +14,24 @@ molecule_tests: - python -m pip install -r tests/requirements.txt script: - ./tests/scripts/molecule_run.sh + +.vagrant: + extends: .testcases + variables: + CI_PLATFORM: "vagrant" + SSH_USER: "kubespray" + VAGRANT_DEFAULT_PROVIDER: "libvirt" + tags: [vagrant] + only: [/^pr-.*$/] + except: ['triggers'] + image: quay.io/miouge/kubespray-vagrant + services: [] + script: + - vagrant up + after_script: + - vagrant destroy --force + +vagrant_ubuntu18-flannel: + stage: deploy-part2 + extends: .vagrant + when: on_success \ No newline at end of file diff --git a/Vagrantfile b/Vagrantfile index 1f0006e56..feb319df3 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -43,7 +43,7 @@ $vm_memory ||= 2048 $vm_cpus ||= 1 $shared_folders ||= {} $forwarded_ports ||= {} -$subnet ||= "172.17.8" +$subnet ||= "172.18.8" $os ||= "ubuntu1804" $network_plugin ||= "flannel" # Setting multi_networking to true will install Multus: https://github.com/intel/multus-cni