Skip to content

Commit

Permalink
Revert vyos jobs to ansible-test (#1742)
Browse files Browse the repository at this point in the history
Revert vyos jobs to ansible-test

Also add ansible versions up to 2.14 and drop 2.10/2.11

Reviewed-by: Jill R <None>
  • Loading branch information
Qalthos authored Jan 20, 2023
1 parent e68ccf3 commit e3e5a46
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 62 deletions.
2 changes: 1 addition & 1 deletion roles/ansible-test-inventory/templates/inventory-vyos.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
[vyos]
vyos-1.1.8 ansible_port=22 ansible_host={{ hostvars['vyos-1.1.8'].ansible_host }} ansible_user=zuul
vyos-1.1.8 ansible_port=22 ansible_host={{ hostvars['vyos'].ansible_host }} ansible_user=zuul

[vyos:vars]
ansible_connection=ansible.netcommon.network_cli
Expand Down
45 changes: 33 additions & 12 deletions zuul.d/project-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,17 @@
- ansible-ee-integration-ios-libssh-stable-2.9
- ansible-ee-integration-ios-libssh-stable-2.11
- ansible-ee-integration-ios-libssh-stable-2.12
- ansible-ee-integration-vyos-latest
- ansible-ee-integration-vyos-libssh-latest
- ansible-test-network-integration-vyos-paramiko-python39-devel
- ansible-test-network-integration-vyos-paramiko-python39-stable214
- ansible-test-network-integration-vyos-paramiko-python39-stable213
- ansible-test-network-integration-vyos-paramiko-python39-stable212
- ansible-test-network-integration-vyos-paramiko-python36-stable29:
voting: false
- ansible-test-network-integration-vyos-libssh-python39-devel
- ansible-test-network-integration-vyos-libssh-python39-stable214
- ansible-test-network-integration-vyos-libssh-python39-stable213
- ansible-test-network-integration-vyos-libssh-python39-stable212
- ansible-test-network-integration-vyos-libssh-python36-stable29
- build-ansible-collection:
required-projects:
- name: github.com/ansible-collections/ansible.utils
Expand Down Expand Up @@ -803,8 +812,17 @@
- ansible-ee-integration-ios-stable-2.11
- ansible-ee-integration-ios-libssh-latest
- ansible-ee-integration-ios-libssh-stable-2.11
- ansible-ee-integration-vyos-latest
- ansible-ee-integration-vyos-libssh-latest
- ansible-test-network-integration-vyos-paramiko-python39-devel
- ansible-test-network-integration-vyos-paramiko-python39-stable214
- ansible-test-network-integration-vyos-paramiko-python39-stable213
- ansible-test-network-integration-vyos-paramiko-python39-stable212
- ansible-test-network-integration-vyos-paramiko-python36-stable29:
voting: false
- ansible-test-network-integration-vyos-libssh-python39-devel
- ansible-test-network-integration-vyos-libssh-python39-stable214
- ansible-test-network-integration-vyos-libssh-python39-stable213
- ansible-test-network-integration-vyos-libssh-python39-stable212
- ansible-test-network-integration-vyos-libssh-python36-stable29
- build-ansible-collection:
required-projects:
- name: github.com/ansible-collections/ansible.utils
Expand Down Expand Up @@ -970,14 +988,17 @@
name: ansible-collections-vyos-vyos
check:
jobs: &ansible-collections-vyos-vyos-jobs
- ansible-ee-integration-vyos-latest
- ansible-ee-integration-vyos-stable-2.12
- ansible-ee-integration-vyos-stable-2.11
- ansible-ee-integration-vyos-stable-2.9
- ansible-ee-integration-vyos-libssh-latest
- ansible-ee-integration-vyos-libssh-stable-2.12
- ansible-ee-integration-vyos-libssh-stable-2.11
- ansible-ee-integration-vyos-libssh-stable-2.9
- ansible-test-network-integration-vyos-paramiko-python39-devel
- ansible-test-network-integration-vyos-paramiko-python39-stable214
- ansible-test-network-integration-vyos-paramiko-python39-stable213
- ansible-test-network-integration-vyos-paramiko-python39-stable212
- ansible-test-network-integration-vyos-paramiko-python36-stable29:
voting: false
- ansible-test-network-integration-vyos-libssh-python39-devel
- ansible-test-network-integration-vyos-libssh-python39-stable214
- ansible-test-network-integration-vyos-libssh-python39-stable213
- ansible-test-network-integration-vyos-libssh-python39-stable212
- ansible-test-network-integration-vyos-libssh-python36-stable29
- build-ansible-collection:
required-projects:
- name: github.com/ansible-collections/ansible.netcommon
Expand Down
143 changes: 94 additions & 49 deletions zuul.d/vyos-vyos-jobs.yaml
Original file line number Diff line number Diff line change
@@ -1,82 +1,127 @@
---
# =============================================================================
# ansible-ee
- job:
name: ansible-ee-integration-vyos-latest
parent: ansible-ee-tests
pre-run:
- playbooks/ansible-ee/integration/pre.yaml
# Ensure we install the bindeps
- playbooks/ansible-network-appliance-base/pre.yaml
- playbooks/ansible-network-vyos-appliance/pre.yaml
- playbooks/ansible-ee/vyos-vyos/pre.yaml
run: playbooks/ansible-ee/integration/run.yaml
vars:
ansible_runner_container_version: latest
container_image_tests:
- integration
test_ansible_network_cli_ssh_type: paramiko
test_ansible_ssh_private_key_file: ~/.ssh/id_rsa
test_ansible_python_interpreter: /usr/bin/python3.9
test_ansible_skip_tags: local
ansible_test_python: 3.9
# NOTE(pabelanger): We can only use RSA ssh keys for vyos.
test_fips_mode: false
name: ansible-network-vyos-appliance
parent: ansible-network-appliance-base
pre-run: playbooks/ansible-network-vyos-appliance/pre.yaml
run: playbooks/ansible-network-vyos-appliance/run.yaml
host-vars:
vyos:
ansible_network_os: vyos
required-projects:
- name: github.com/ansible/ansible-zuul-jobs
nodeset: vyos-1.1

- job:
name: ansible-test-network-integration-vyos
abstract: true
dependencies:
- name: build-ansible-collection
soft: true
parent: ansible-network-vyos-appliance
pre-run:
- playbooks/ansible-test-base/pre.yaml
- playbooks/ansible-test-network-integration-base/pre.yaml
run: playbooks/ansible-test-base/run.yaml
post-run:
- playbooks/ansible-test-network-integration-base/post.yaml
- playbooks/ansible-test-base/post.yaml
required-projects:
- name: github.com/ansible/ansible
- name: github.com/ansible-collections/vyos.vyos
timeout: 10800
vars:
ansible_collections_repo: github.com/ansible-collections/vyos.vyos
ansible_test_command: network-integration
ansible_test_integration_targets: "vyos_.*"
ansible_test_python: 3.9
# NOTE(pabelanger): We can only use RSA ssh keys for vyos.
test_fips_mode: false
files:
- ^plugins/.*$
- ^tests/integration/.*$
- ^requirements.txt
- ^bindep.txt

# paramiko
- job:
name: ansible-ee-integration-vyos-stable-2.12
parent: ansible-ee-integration-vyos-latest
name: ansible-test-network-integration-vyos-paramiko
parent: ansible-test-network-integration-vyos
abstract: true
vars:
ansible_runner_container_version: stable-2.12-devel
ansible_test_network_cli_ssh_type: paramiko

- job:
name: ansible-ee-integration-vyos-stable-2.11
parent: ansible-ee-integration-vyos-latest
name: ansible-test-network-integration-vyos-paramiko-python36-stable29
parent: ansible-test-network-integration-vyos-paramiko
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.9
vars:
ansible_runner_container_version: stable-2.11-devel
ansible_test_python: 3.6

- job:
name: ansible-ee-integration-vyos-stable-2.9
parent: ansible-ee-integration-vyos-latest
vars:
test_ansible_python_interpreter: /usr/bin/python3.8
ansible_runner_container_version: stable-2.9-devel
test_ansible_skip_tags: ""
name: ansible-test-network-integration-vyos-paramiko-python39-stable212
parent: ansible-test-network-integration-vyos-paramiko
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.12

- job:
name: ansible-test-network-integration-vyos-paramiko-python39-stable213
parent: ansible-test-network-integration-vyos-paramiko
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.13

- job:
name: ansible-test-network-integration-vyos-paramiko-python39-stable214
parent: ansible-test-network-integration-vyos-paramiko
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.14

- job:
name: ansible-test-network-integration-vyos-paramiko-python39-devel
parent: ansible-test-network-integration-vyos-paramiko

# libssh
- job:
name: ansible-ee-integration-vyos-libssh-latest
parent: ansible-ee-integration-vyos-latest
name: ansible-test-network-integration-vyos-libssh
parent: ansible-test-network-integration-vyos
abstract: true
vars:
test_ansible_network_cli_ssh_type: libssh
ansible_test_network_cli_ssh_type: libssh

- job:
name: ansible-ee-integration-vyos-libssh-stable-2.12
parent: ansible-ee-integration-vyos-libssh-latest
name: ansible-test-network-integration-vyos-libssh-python36-stable29
parent: ansible-test-network-integration-vyos-libssh
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.9
vars:
ansible_runner_container_version: stable-2.12-devel
ansible_test_python: 3.6

- job:
name: ansible-ee-integration-vyos-libssh-stable-2.11
parent: ansible-ee-integration-vyos-libssh-latest
vars:
ansible_runner_container_version: stable-2.11-devel
name: ansible-test-network-integration-vyos-libssh-python39-stable212
parent: ansible-test-network-integration-vyos-libssh
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.12

- job:
name: ansible-ee-integration-vyos-libssh-stable-2.9
parent: ansible-ee-integration-vyos-libssh-latest
vars:
test_ansible_python_interpreter: /usr/bin/python3.8
ansible_runner_container_version: stable-2.9-devel
name: ansible-test-network-integration-vyos-libssh-python39-stable213
parent: ansible-test-network-integration-vyos-libssh
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.13

- job:
name: ansible-test-network-integration-vyos-libssh-python39-stable214
parent: ansible-test-network-integration-vyos-libssh
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.14

- job:
name: ansible-test-network-integration-vyos-libssh-python39-devel
parent: ansible-test-network-integration-vyos-libssh

0 comments on commit e3e5a46

Please sign in to comment.