Riccardo Pittau d0448ea200 Use main branch of metal3-dev-env to run metal3 integration job
Set libvirt domain to qemu for compatibility with openstack CI infra

Change-Id: Icf6dfa9603ec35c0b0527ac5358252cbb4842e6d
2023-03-21 11:06:57 +00:00

38 lines
1.3 KiB
YAML

---
- hosts: all
tasks:
- name: Define the metal3 variables
set_fact:
metal3_dev_env_src_dir: '{{ ansible_user_dir }}/metal3-dev-env'
metal3_environment:
ANSIBLE_VERBOSITY: 2
CONTROL_PLANE_MACHINE_COUNT: 1
IMAGE_OS: ubuntu
IMAGE_USERNAME: zuul
# NOTE(dtantsur): we don't have enough resources to provision even
# a 2-node cluster, so only provision a control plane node.
NUM_NODES: 2
LIBVIRT_DOMAIN_TYPE: "qemu"
WORKER_MACHINE_COUNT: 1
# TODO(dtantsur): add metal3-io/metal3-dev-env as a recognized project to
# https://opendev.org/openstack/project-config/src/commit/e15b9cae77bdc243322cee64b3688a2a43dd193c/zuul/main.yaml#L1416
- name: Clone metal3-dev-env
git:
dest: "{{ metal3_dev_env_src_dir }}"
repo: "https://github.com/metal3-io/metal3-dev-env"
- name: Build a metal3 environment
command: make
args:
chdir: "{{ metal3_dev_env_src_dir }}"
environment: "{{ metal3_environment }}"
# NOTE(rpittau) skip the tests for the time begin, they imply the presence of
# 2 nodes, 1 control plus 1 worker
# - name: Run metal3 tests
# command: make test
# args:
# chdir: "{{ metal3_dev_env_src_dir }}"
# environment: "{{ metal3_environment }}"