Skip to content

Commit ae8045d

Browse files
cjeanneropenshift-merge-bot[bot]
authored andcommitted
Allow to bump the amount of compute with a parameter
This patch, with #1181, should allow to easily scale-out the amount of computes, without having to edit the validated-architecture-1.yml nor the 3-nodes.yml. It's taking the same parameter as the libvirt_manager role, "cifmw_libvirt_manager_compute_amount". The VA-1 scenario will pick the maximum amount, meaning we'll get at least 3 computes; the 3-nodes will do the same, meaning we'll get at least 1 node.
1 parent 6b296f8 commit ae8045d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scenarios/reproducers/3-nodes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cifmw_use_libvirt: true
1515
cifmw_libvirt_manager_configuration:
1616
vms:
1717
compute:
18-
amount: 1
18+
amount: "{{ [cifmw_libvirt_manager_compute_amount|int, 1] | max }}"
1919
root_part_id: >-
2020
{{
2121
(cifmw_repo_setup_os_release is defined and cifmw_repo_setup_os_release == 'rhel') |

scenarios/reproducers/validated-architecture-1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ cifmw_libvirt_manager_configuration:
4747
(cifmw_repo_setup_os_release is defined and cifmw_repo_setup_os_release == 'rhel') |
4848
ternary(4, 1)
4949
}}
50-
amount: 3
50+
amount: "{{ [cifmw_libvirt_manager_compute_amount|int, 3] | max }}"
5151
image_url: "{{ cifmw_discovered_image_url }}"
5252
sha256_image_name: "{{ cifmw_discovered_hash }}"
5353
image_local_dir: "{{ cifmw_basedir }}/images/"

0 commit comments

Comments
 (0)