Maxime Guyot
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
22 additions and
1 deletions
-
.gitlab-ci/vagrant.yml
-
Vagrantfile
|
|
@ -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 |
|
|
@ -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 |
|
|
|