PHASE 1 - Add Packet-CI playbook and configuration (#4537)

This commit is contained in:
Andreas Krüger
2019-04-16 23:49:07 +02:00
committed by Kubernetes Prow Robot
parent 78f6f6b889
commit b834a28891
10 changed files with 268 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
---
- name: "Include custom vars for ci job: {{ ci_job_name }}"
include_vars: "../files/{{ ci_job_name }}.yml"
- name: Set VM count needed for CI test_id
set_fact:
vm_count: "{%- if mode in ['separate', 'separate-scale', 'ha', 'ha-scale'] -%}{{ 3|int }}{%- elif mode == 'aio' -%}{{ 1|int }}{%- else -%}{{ 2|int }}{%- endif -%}"
- import_tasks: create-vms.yml
when:
- not vm_cleanup
- import_tasks: delete-vms.yml
when:
- vm_cleanup | default(false)