From 41d887973c28c2c7926d10dd817f53e130f07d36 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Mon, 23 May 2022 17:36:38 +0100 Subject: [PATCH] Add validation zuul job for hosts setup Run a hosts scenario job when any of the basic host setup playbooks or the hosts validation playbook is changed. Change-Id: I1a6334951c815fc70c93b5a950ea3fcd1606b669 --- zuul.d/jobs.yaml | 17 +++++++++++++++++ zuul.d/project-templates.yaml | 2 ++ 2 files changed, 19 insertions(+) diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 92bc3a67d6..b3f43d8054 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -320,6 +320,23 @@ - ^ansible-role-requirements\.yml - ^playbooks\/defaults\/repo_packages\/.*\.yml +# Ensuring hosts setup and healthcheck-hosts playbook is valid +- job: + name: openstack-ansible-deploy-hosts_lxc-validate + parent: openstack-ansible-deploy-hosts_lxc-ubuntu-focal + files: + - ^playbooks\/healthcheck-hosts.yml + - ^playbooks\/lxc-containers-create.yml + - ^playbooks\/lxc-hosts-setup.yml + - ^playbooks\/containers-lxc-create.yml + - ^playbooks\/containers-lxc-host.yml + - ^playbooks\/certificate-authority.yml + - ^playbooks\/certificate-ssh-authority.yml + - ^playbooks\/containers-deploy.yml + - ^playbooks\/openstack-hosts-setup.yml + - ^playbooks\/setup-hosts.yml + - ^playbooks\/security-hardening.yml + # Ensuring clustering and healthcheck-infrastructure playbook is valid - job: name: openstack-ansible-deploy-infra_lxc-validate diff --git a/zuul.d/project-templates.yaml b/zuul.d/project-templates.yaml index 53c48f8c5e..647cb76682 100644 --- a/zuul.d/project-templates.yaml +++ b/zuul.d/project-templates.yaml @@ -20,6 +20,7 @@ - openstack-ansible-shastest-metal - openstack-ansible-tox-inventory - openstack-ansible-deploy-infra_lxc-validate + - openstack-ansible-deploy-hosts_lxc-validate - openstack-tox-docs gate: jobs: @@ -27,6 +28,7 @@ - openstack-ansible-shastest-metal - openstack-ansible-tox-inventory - openstack-ansible-deploy-infra_lxc-validate + - openstack-ansible-deploy-hosts_lxc-validate - openstack-tox-docs periodic: jobs: