From ef91d725f8d10c60fc78e4dc25e54d21bd7256f0 Mon Sep 17 00:00:00 2001 From: Ronelle Landy Date: Thu, 3 Jun 2021 09:02:33 -0400 Subject: [PATCH] Test container updates when delorean-current does not exist delorean-current does not exist is downstream jobs. This review set_fact to edit the default value before adding component repos. Change-Id: I8c163457c24e92a4a98d4796b7dfd8351c0bfe14 --- roles/undercloud-deploy/tasks/create-scripts.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/undercloud-deploy/tasks/create-scripts.yml b/roles/undercloud-deploy/tasks/create-scripts.yml index c900de303..d79c17916 100644 --- a/roles/undercloud-deploy/tasks/create-scripts.yml +++ b/roles/undercloud-deploy/tasks/create-scripts.yml @@ -99,6 +99,18 @@ dest: "{{ working_dir }}/undercloud-parameter-defaults.yaml" mode: 0600 +- name: Set update_containers_repo if delorean-current is not present + stat: + path: "/etc/yum.repos.d/delorean-current.repo" + register: delorean_current_stat + +- name: Remove delorean-current from repo updates + set_fact: + update_containers_repo: >- + {% if compressed_gating_repo is defined %}{{ gating_repo_name }}{% endif %} + {%- if compressed_gating_repo is defined and container_prep_additional_repos -%},{%- endif -%} + {%- if container_prep_additional_repos -%}{{ container_prep_additional_repos }}{%- endif -%} + when: not delorean_current_stat.stat.exists - name: Set repos defined in the job for container update when: