Inject gating repo in overcloud and IPA images

Use install-built-repo role to enject gating repo in the
overcloud and IPA images once the image is built.

Change-Id: I1b9dc627fa71e80dc3bf79ddd353ace1d15e7673
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
This commit is contained in:
Chandan Kumar (raukadah) 2020-05-13 21:31:45 +05:30
parent 2ff5367d0a
commit d028ffd370
1 changed files with 16 additions and 5 deletions

View File

@ -26,11 +26,6 @@
path: "{{ images_working_dir }}/web-gating.repo"
register: new_repo
- name: Append new repo to overcloud_repo_path
set_fact:
overcloud_repo_paths: "{{ overcloud_repo_paths + [(images_working_dir + '/web-gating.repo')] }}"
when: new_repo.stat.exists
- name: Run the image build script (direct) using oooci-build-images role
vars:
dib_yum_repo_conf: "{{ overcloud_repo_paths }}"
@ -44,6 +39,22 @@
- not build_image_isolated|bool
- to_build|bool
- when: new_repo.stat.exists
block:
- name: Enject repo in overcloud image
include_role:
name: install-built-repo
vars:
ib_repo_image_path: "{{ images_working_dir }}/overcloud-full.qcow2"
- name: Enject repo in IPA image
include_role:
name: install-built-repo
vars:
ib_repo_image_path: "{{ images_working_dir }}/ironic-python-agent.initramfs"
initramfs_image: true
libguestfs_mode: false
- when: build_image_isolated|bool
block:
- name: Make sure /dev/pts exists