Browse Source

CI: ensure kubevirt VMs are available as part of provisionning

Allow to use the provisionning playbook from multiples users without
duplicating the ssh check.
pull/12026/head
Max Gautier 1 month ago
parent
commit
71ae3c78e2
Failed to extract signature
3 changed files with 13 additions and 15 deletions
  1. 13
      tests/cloud_playbooks/create-packet.yml
  2. 13
      tests/cloud_playbooks/wait-for-ssh.yml
  3. 2
      tests/scripts/testcases_run.sh

13
tests/cloud_playbooks/create-packet.yml

@ -9,3 +9,16 @@
name: packet-ci
- name: Update inventory for Molecule
meta: refresh_inventory
- name: Wait until SSH is available
hosts: all
become: false
gather_facts: false
tasks:
- name: Wait until SSH is available
wait_for:
host: "{{ ansible_host }}"
port: 22
timeout: 240
delegate_to: localhost

13
tests/cloud_playbooks/wait-for-ssh.yml

@ -1,13 +0,0 @@
---
- name: Wait until SSH is available
hosts: all
become: false
gather_facts: false
tasks:
- name: Wait until SSH is available
wait_for:
host: "{{ ansible_host }}"
port: 22
timeout: 240
delegate_to: localhost

2
tests/scripts/testcases_run.sh

@ -63,8 +63,6 @@ EOF
fi
ansible-playbook tests/cloud_playbooks/wait-for-ssh.yml
run_playbook () {
playbook=$1
shift

Loading…
Cancel
Save