Skip to content

Commit 0f46d18

Browse files
raukadahfrenzyfriday
authored andcommitted
Add cifmw_build_containers_force flag to build tcib containers always in meta content provider
Sometimes we want to build tcib content provider irrespective of gating repo. In order to do that there is no way to do that. By adding cifmw_build_containers_force flag allows to build the containers in meta content provider. Signed-off-by: Chandan Kumar (raukadah) <[email protected]>
1 parent d8f86c8 commit 0f46d18

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ci/playbooks/meta_content_provider/meta_content_provider.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747
- name: Build openstack services container when gating repo exists
4848
when:
4949
- "'os-net-config' not in zuul_change_list"
50-
- _gating_repo.stat.exists
50+
# Note: cifmw_build_containers_force var is used to run build_containers
51+
# role in the meta content provider irrespective of gating repo.
52+
- _gating_repo.stat.exists or cifmw_build_containers_force | default('false')
5153
block:
5254
# It is needed to install built python-tcib package on the controller
5355
- name: Populate gating repo in /etc/yum.repos.d

roles/build_containers/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ become - Required to install and execute tcib
3535
* `cifmw_build_containers_hotfix_tag`: (String) The tag of the container image.
3636
* `cifmw_build_containers_run_hotfix`: (boolean) conditional variable for executing build_containers.
3737
* `cifmw_build_containers_install_from_source`: (boolean) Install tcib from RPM.
38+
39+
### Parameters used in meta-content-provider
40+
41+
* `cifmw_build_containers_force`: (Boolean) Force run build_containers role irrespective of gating repo. Default to `false`.

0 commit comments

Comments
 (0)