diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2022-11-07 13:39:59 +0100 |
---|---|---|
committer | Riccardo Pittau <elfosardo@gmail.com> | 2023-03-06 12:16:27 +0100 |
commit | a6d87a608c24c96032db578a6e7207d73ad53417 (patch) | |
tree | d3d27990d2478448e9600d009de65834fd4a0f67 /playbooks/metal3-ci/run.yaml | |
parent | 17d97d51ad63a2fb0d4cc7bef448823582dac607 (diff) | |
download | ironic-a6d87a608c24c96032db578a6e7207d73ad53417.tar.gz |
Add a non-voting metal3 CI job
We'll use only one node as we're limited in resources but that
should suffice for a basic test.
Change-Id: I8e845d46ba0e13027aa1e628b0ad45eb24f9b387
Diffstat (limited to 'playbooks/metal3-ci/run.yaml')
-rw-r--r-- | playbooks/metal3-ci/run.yaml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/playbooks/metal3-ci/run.yaml b/playbooks/metal3-ci/run.yaml new file mode 100644 index 000000000..66886b26a --- /dev/null +++ b/playbooks/metal3-ci/run.yaml @@ -0,0 +1,39 @@ +--- +- hosts: all + tasks: + - name: Define the metal3 variables + set_fact: + metal3_dev_env_src_dir: '{{ ansible_user_dir }}/metal3-dev-env' + metal3_environment: + 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 + 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 + # TODO(dtantsur): replace my fork with the upstream source once all fixes + # merge there. + # TODO(rpittau): move back to dtantsur or metal3-io after we merge the changes + - name: Clone metal3-dev-env + git: + dest: "{{ metal3_dev_env_src_dir }}" + repo: "https://github.com/elfosardo/metal3-dev-env" + version: ironic-ci + + - 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 }}" |