Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0.0-proposed] Add _openstack_final_env to set final env filename #2195

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: 1 addition & 0 deletions playbooks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
cifmw_set_openstack_containers_tag_from_md5: true
cifmw_set_openstack_containers_extra_vars: "{{ cifmw_edpm_prepare_extra_vars }}"
cifmw_set_openstack_containers_openstack_version_change: true
cifmw_set_openstack_containers_openstack_final_env: "operator_env_after_update.txt"
ansible.builtin.include_role:
name: set_openstack_containers

Expand Down
1 change: 1 addition & 0 deletions roles/set_openstack_containers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The role will generate two 2 files in ~/ci-framework-data/artifacts/ directory a
* `cifmw_set_openstack_containers_prefix`: Update container containing. Defaults to `openstack`
* `cifmw_set_openstack_containers_openstack_version_change`: (Boolean) Set environment variables for openstack services containers for specific OPENSTACK_RELEASE_VERSION defined in cifmw_set_openstack_containers_update_target_version. It should be used only for meta openstack operator in prepare for openstack minor update. Defaults to `false`.
* `cifmw_set_openstack_containers_update_target_version`: Value of OPENSTACK_RELEASE_VERSION env in openstack operator that should be set. Defaults to `0.0.2`.
* `cifmw_set_openstack_containers_openstack_final_env`: File name to store the operator env in a file. Default to `operator_env.txt`.

## Examples

Expand Down
1 change: 1 addition & 0 deletions roles/set_openstack_containers/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ cifmw_set_openstack_containers_tag_from_md5: false
cifmw_set_openstack_containers_dlrn_md5_path: "/etc/yum.repos.d/delorean.repo.md5"
cifmw_set_openstack_containers_openstack_version_change: false
cifmw_set_openstack_containers_update_target_version: "0.0.2"
cifmw_set_openstack_containers_openstack_final_env: "operator_env.txt"

# Set custom image url for non-openstack images
cifmw_set_openstack_containers_overrides: {}
4 changes: 2 additions & 2 deletions roles/set_openstack_containers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@
PATH: "{{ cifmw_path }}"
cifmw.general.ci_script:
output_dir: "{{ cifmw_set_openstack_containers_basedir }}/artifacts"
script: "oc set env {{ operator_pod_name }} -n {{ cifmw_install_yamls_defaults['OPERATOR_NAMESPACE'] }} --list > operator_env.txt"
script: "oc set env {{ operator_pod_name }} -n {{ cifmw_install_yamls_defaults['OPERATOR_NAMESPACE'] }} --list > {{ cifmw_set_openstack_containers_openstack_final_env }}"
chdir: "{{ cifmw_set_openstack_containers_basedir }}/artifacts"
creates: operator_env.txt
creates: "{{ cifmw_set_openstack_containers_openstack_final_env }}"
Loading