Skip to content

Commit 6a126b7

Browse files
committed
[install_yamls] Add install_yamls pull repo capability
We're adding new variables: cifmw_install_yamls_src and cifmw_install_yamls_version This repo is cloned from zuul builting tools, now we can clone this when deploying outside zuul. Signed-off-by: Enrique Vallespi Gil <evallesp@redhat.com>
1 parent 7680a88 commit 6a126b7

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

roles/install_yamls/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ It contains a set of playbooks to deploy podified control plane.
66

77
## Parameters
88

9+
* `cifmw_installyamls_repo_url`: (String) Url of the install_yamls repo. Defaults to `https://github.com/openstack-k8s-operators/install_yamls`.
10+
* `cifmw_install_yamls_version`: (String) Version of the repo to be cloned. Defaults to `HEAD`.
911
* `cifmw_install_yamls_envfile`: (String) Environment file containing all the Makefile overrides. Defaults to `install_yamls`.
1012
* `cifmw_install_yamls_out_dir`: (String) `install_yamls` output directory to store generated output. Defaults to `{{ cifmw_basedir | default(ansible_user_dir ~ '/ci-framework-data') }}/artifacts"`.
1113
* `cifmw_install_yamls_vars`: (Dict) A dict containing Makefile overrides.

roles/install_yamls/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ cifmw_install_yamls_edpm_dir: "{{ cifmw_manifests | default(cifmw_install_yamls_
2828
# NAMESPACE: openstack
2929
# METALLB_POOL would be removed once https://github.com/openstack-k8s-operators/install_yamls/pull/356 merges.
3030
cifmw_install_yamls_repo: "{{ cifmw_installyamls_repos | default(ansible_user_dir ~ '/src/github.com/openstack-k8s-operators/install_yamls') }}"
31+
cifmw_installyamls_repo_url: "https://github.com/openstack-k8s-operators/install_yamls"
32+
cifmw_install_yamls_version: "{{ cifmw_install_yamls_version_pin | default('HEAD') }}"
3133
cifmw_install_yamls_tasks_out: "{{ cifmw_install_yamls_out_dir }}/roles/install_yamls_makes/tasks"
3234
cifmw_install_yamls_whitelisted_vars:
3335
- DEPLOY_DIR

roles/install_yamls/tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
- "{{ cifmw_install_yamls_tasks_out }}"
2727
- "{{ cifmw_basedir }}/artifacts/parameters"
2828

29+
- name: Ensure install_yamls repo is present at the desired version
30+
tags:
31+
- bootstrap
32+
ansible.builtin.git:
33+
repo: "{{ cifmw_installyamls_repo_url }}"
34+
dest: "{{ cifmw_install_yamls_repo }}"
35+
version: "{{ cifmw_install_yamls_version }}"
36+
update: false
37+
2938
- name: Create variables with local repos based on Zuul items
3039
tags:
3140
- bootstrap

0 commit comments

Comments
 (0)