You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.6 KiB

Upgrade ansible (#10190) * project: update all dependencies including ansible Upgrade to ansible 7.x and ansible-core 2.14.x. There seems to be issue with ansible 8/ansible-core 2.15 so we remain on those versions for now. It's quite a big bump already anyway. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: install aws galaxy collection Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * ansible-lint: disable various rules after ansible upgrade Temporarily disable a bunch of linting action following ansible upgrade. Those should be taken care of separately. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve deprecated-module ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve no-free-form ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[meta] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[playbook] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[tasks] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-file-permissions ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-shell-pipe ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: remove deprecated warn args Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use fqcn for non builtin tasks Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve syntax-check[missing-file] for contrib playbook Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use arithmetic inside jinja to fix ansible 6 upgrade Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
1 year ago
  1. ---
  2. .vagrant:
  3. extends: .testcases
  4. variables:
  5. CI_PLATFORM: "vagrant"
  6. SSH_USER: "vagrant"
  7. VAGRANT_DEFAULT_PROVIDER: "libvirt"
  8. KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb
  9. tags: [c3.small.x86]
  10. only: [/^pr-.*$/]
  11. except: ['triggers']
  12. image: $PIPELINE_IMAGE
  13. services: []
  14. before_script:
  15. - apt-get update && apt-get install -y python3-pip
  16. - update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  17. - python -m pip uninstall -y ansible ansible-base ansible-core
  18. - python -m pip install -r tests/requirements.txt
  19. - ansible-galaxy install -r tests/requirements.yml
  20. - ./tests/scripts/vagrant_clean.sh
  21. script:
  22. - ./tests/scripts/testcases_run.sh
  23. after_script:
  24. - chronic ./tests/scripts/testcases_cleanup.sh
  25. allow_failure: true
  26. vagrant_ubuntu20-calico-dual-stack:
  27. stage: deploy-part2
  28. extends: .vagrant
  29. when: on_success
  30. vagrant_ubuntu20-weave-medium:
  31. stage: deploy-part2
  32. extends: .vagrant
  33. when: manual
  34. vagrant_ubuntu20-flannel:
  35. stage: deploy-part2
  36. extends: .vagrant
  37. when: on_success
  38. allow_failure: false
  39. vagrant_ubuntu20-flannel-collection:
  40. stage: deploy-part2
  41. extends: .vagrant
  42. when: on_success
  43. vagrant_ubuntu20-kube-router-sep:
  44. stage: deploy-part2
  45. extends: .vagrant
  46. when: manual
  47. # Service proxy test fails connectivity testing
  48. vagrant_ubuntu20-kube-router-svc-proxy:
  49. stage: deploy-part2
  50. extends: .vagrant
  51. when: manual
  52. vagrant_fedora35-kube-router:
  53. stage: deploy-part2
  54. extends: .vagrant
  55. when: on_success
  56. vagrant_centos7-kube-router:
  57. stage: deploy-part2
  58. extends: .vagrant
  59. when: manual