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
Failed to extract signature
3 changed files with
13 additions and
15 deletions
-
tests/cloud_playbooks/create-packet.yml
-
tests/cloud_playbooks/wait-for-ssh.yml
-
tests/scripts/testcases_run.sh
|
|
@ -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 |
|
|
@ -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 |
|
|
@ -63,8 +63,6 @@ EOF |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
ansible-playbook tests/cloud_playbooks/wait-for-ssh.yml |
|
|
|
|
|
|
|
run_playbook () { |
|
|
|
playbook=$1 |
|
|
|
shift |
|
|
|