Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/source/development/02_molecule.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ cifmw_internal_registry_login: false
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_openshift_setup_skip_internal_registry: true
cifmw_artifacts_basedir: "{{ ansible_user_dir }}/ci-framework-data/artifacts "
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
nodepool:
cloud: ""
mol_config_dir: /home/$(whoami)/src/github.com/openstack-k8s-operators/ci-framework/.config/molecule/config_local.yml
Expand Down
3 changes: 3 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_project_dir: src/github.com/openstack-k8s-operators/ci-framework
cifmw_project_dir_absolute: "{{ ansible_user_dir }}/{{ cifmw_project_dir }}"
cifmw_installyamls_repos_relative: src/github.com/openstack-k8s-operators/install_yamls
# since cifmw_installyamls_repos var already exists, let's use that and move all definition here in single place instead of creating another variable.
cifmw_installyamls_repos: "{{ ansible_user_dir }}/{{ cifmw_installyamls_repos_relative }}"
2 changes: 1 addition & 1 deletion plugins/modules/generate_make_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

- name: Generate make tasks
generate_make_tasks:
install_yamls_path: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls/"
install_yamls_path: "{{ cifmw_installyamls_repos }}"
output_directory: "{{ ansible_user_dir }}/make_installyamls/tasks"
""" # noqa

Expand Down
1 change: 0 additions & 1 deletion roles/edpm_deploy/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_defaults:
NAMESPACE: openstack
roles:
Expand Down
1 change: 0 additions & 1 deletion roles/edpm_deploy_baremetal/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
roles:
- role: test_deps
- role: ci_setup
Expand Down
1 change: 0 additions & 1 deletion roles/edpm_prepare/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_defaults:
NAMESPACE: openstack
roles:
Expand Down
6 changes: 3 additions & 3 deletions roles/install_yamls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It contains a set of playbooks to deploy podified control plane.
* `cifmw_install_yamls_envfile`: (String) Environment file containing all the Makefile overrides. Defaults to `install_yamls`.
* `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"`.
* `cifmw_install_yamls_vars`: (Dict) A dict containing Makefile overrides.
* `cifmw_install_yamls_repo`: (String) `install_yamls` repo path. Defaults to `{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls`.
* `cifmw_install_yamls_repo`: (String) `install_yamls` repo path. Defaults to `{{ cifmw_installyamls_repos | default(ansible_user_dir ~ '/src/github.com/openstack-k8s-operators/install_yamls')}}`
* `cifmw_install_yamls_whitelisted_vars`: (List) Allowed variables in `cifmw_install_yamls_vars` that are not part of `install_yamls` Makefiles.
* `cifmw_install_yamls_edpm_dir`: (String) Output directory for EDPM related artifacts (OUTPUT_BASEDIR). Defaults to `{{ cifmw_install_yamls_out_dir_basedir ~ '/artifacts/edpm' }}`
* `cifmw_install_yamls_checkout_openstack_ref`: (String) Enable the checkout from openstack-operator references
Expand Down Expand Up @@ -43,7 +43,7 @@ The created role directory contains multiple task files, similar to
register: "make_crc_storage_status"
cifmw.general.ci_script:
output_dir: "{{ cifmw_basedir|default(ansible_user_dir ~ '/ci-framework-data') }}/artifacts"
chdir: "/home/zuul/src/github.com/openstack-k8s-operators/install_yamls"
chdir: "{{ cifmw_install_yamls_repo }}"
script: make crc_storage
dry_run: "{{ make_crc_storage_dryrun|default(false)|bool }}"
extra_args: "{{ dict((make_crc_storage_env|default({})), **(make_crc_storage_params|default({}))) }}"
Expand Down Expand Up @@ -121,7 +121,7 @@ Let's look at below example:-
register: "make_ansibleee_cleanup_status"
cifmw.general.ci_script:
output_dir: "{{ cifmw_basedir|default(ansible_user_dir ~ '/ci-framework-data') }}/artifacts"
chdir: "/home/zuul/src/github.com/openstack-k8s-operators/install_yamls"
chdir: "{{ cifmw_install_yamls_repo }}"
script: "make ansibleee_cleanup"
dry_run: "{{ make_ansibleee_cleanup_dryrun|default(false)|bool }}"
extra_args: "{{ dict((make_ansibleee_cleanup_env|default({})), **(make_ansibleee_cleanup_params|default({}))) }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/install_yamls/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
namespace: foobar
openstack_ctlplane: controlplane-yaml-file.yaml
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_install_yamls_repo: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_repo: "{{ cifmw_installyamls_repos }}"
zuul:
branch: main
items:
Expand Down
2 changes: 1 addition & 1 deletion roles/reproducer/molecule/crc_layout/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
- src: "/tmp/ipmi-things"
dest: "/home/zuul/ipmi-things"
cifmw_basedir: "/opt/basedir"
cifmw_install_yamls_repo: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_repo: "{{ cifmw_installyamls_repos }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
_networks:
public:
Expand Down
2 changes: 1 addition & 1 deletion roles/reproducer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
_devsetup_path: >-
{{
(
cifmw_install_yamls_repo | default('/home/zuul/src/github.com/openstack-k8s-operators/install_yamls'),
cifmw_installyamls_repos,
'devsetup'
) | ansible.builtin.path_join
}}
Expand Down
2 changes: 1 addition & 1 deletion roles/reproducer/tasks/reuse_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
_devsetup_path: >-
{{
(
cifmw_install_yamls_repo | default('/home/zuul/src/github.com/openstack-k8s-operators/install_yamls'),
cifmw_installyamls_repos,
'devsetup'
) | ansible.builtin.path_join
}}
Expand Down
2 changes: 1 addition & 1 deletion roles/reproducer/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cifmw_reproducer_default_repositories:
- src: "https://github.com/openstack-k8s-operators/ci-framework"
dest: "{{ cifmw_project_dir_absolute }}"
- src: "https://github.com/openstack-k8s-operators/install_yamls"
dest: "/home/zuul/src/github.com/openstack-k8s-operators/install_yamls"
dest: "{{ cifmw_installyamls_repos }}"
- src: "https://github.com/openstack-k8s-operators/architecture"
dest: "/home/zuul/src/github.com/openstack-k8s-operators/architecture"

Expand Down
1 change: 0 additions & 1 deletion roles/tempest/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_defaults:
NAMESPACE: openstack
roles:
Expand Down
1 change: 0 additions & 1 deletion roles/tofu/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_defaults:
NAMESPACE: openstack
roles:
Expand Down
1 change: 0 additions & 1 deletion roles/update/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_defaults:
NAMESPACE: openstack
roles:
Expand Down
1 change: 0 additions & 1 deletion scenarios/centos-9/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"

cifmw_openshift_user: "kubeadmin"
cifmw_openshift_password: "123456789"
Expand Down
1 change: 0 additions & 1 deletion scenarios/centos-9/content_provider.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_operator_build_push_registry: "{{ cifmw_rp_registry_ip | default('localhost') }}:5001"
cifmw_operator_build_push_org: "openstack-k8s-operators"
cifmw_operator_build_org: "openstack-k8s-operators"
Expand Down
1 change: 0 additions & 1 deletion scenarios/centos-9/edpm_baremetal_deployment_ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_vars:
DEPLOY_DIR: "{{ cifmw_basedir }}/artifacts/edpm_compute" # used during Baremetal deployment
BMAAS_INSTANCE_MEMORY: 8192
Expand Down
1 change: 0 additions & 1 deletion scenarios/centos-9/edpm_ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
cifmw_install_yamls_vars:
BMO_SETUP: false
INSTALL_CERT_MANAGER: false
Expand Down
1 change: 0 additions & 1 deletion scenarios/centos-9/install_yamls.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
---
cifmw_rhol_crc_use_installyamls: true
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
1 change: 0 additions & 1 deletion scenarios/centos-9/meta_content_provider.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"

# build_operators vars
cifmw_operator_build_push_registry: "{{ cifmw_rp_registry_ip }}:{{ cifmw_rp_registry_port }}"
Expand Down
1 change: 0 additions & 1 deletion scenarios/centos-9/podified_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# It is the common scenario file for EDPM multinode podified deployment

ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"

cifmw_openshift_user: "kubeadmin"
cifmw_openshift_password: "123456789"
Expand Down
1 change: 0 additions & 1 deletion scenarios/centos-9/tcib.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls"
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_build_containers_tcib_src: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/tcib"
cifmw_repo_setup_src: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/repo-setup"
Expand Down
1 change: 0 additions & 1 deletion scenarios/reproducers/3-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# This is local to your desktop/laptop.
# We can't use ansible_user_dir here, unless you have the same user on the
# hypervisor and locally.
cifmw_install_yamls_repo: "~/src/github.com/openstack-k8s-operators/install_yamls"
# This will be created on the hypervisor.
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
Expand Down
Loading