Skip to content
Draft
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 roles/reproducer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ None
* `cifmw_reproducer_skip_fetch_repositories`: (Bool) Skip fetching repositories from zuul var and simply copy the code from the ansible controller. Defaults to `false`.
* `cifmw_reproducer_supported_hypervisor_os`: (List) List of supported hypervisor operating systems and their minimum version.
* `cifmw_reproducer_minimum_hardware_requirements`: (Dict) Define minimum hardware requirements for specific scenarios. Example below
* `cifmw_reproducer_computes_rhos_release_args`: (String) Arguments to use when installing rhos-release repos on compute nodes. Not defined by default, and `cifmw_repo_setup_rhos_release_args` is used instead.

### Advanced parameters
Those parameters shouldn't be used, unless the user is able to understand potential issues in their environment.
Expand Down
2 changes: 2 additions & 0 deletions roles/reproducer/tasks/configure_computes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
- cifmw_repo_setup_rhos_release_rpm is defined
block:
- name: Get rhos-release and setup repos
vars:
_rhos_release_args_override: "{{ cifmw_reproducer_computes_rhos_release_args }}"
ansible.builtin.include_tasks: rhos_release.yml

- name: Create repositories on computes
Expand Down
2 changes: 1 addition & 1 deletion roles/reproducer/tasks/rhos_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- name: Install repos
ansible.builtin.command:
cmd: "rhos-release {{ cifmw_repo_setup_rhos_release_args | default('rhel') }}"
cmd: "rhos-release {{ _rhos_release_args_override | default(cifmw_repo_setup_rhos_release_args) | default('rhel') }}"

- name: Run custom commands after rhos-release setup
ansible.builtin.command:
Expand Down
Loading