Skip to content

Commit

Permalink
fix: list cloud agent packages by architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjelinek committed Dec 5, 2024
1 parent 7804be0 commit 38a2dca
Show file tree
Hide file tree
Showing 11 changed files with 139 additions and 67 deletions.
4 changes: 3 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
ha_cluster_sbd_enabled | ternary(__ha_cluster_sbd_packages, [])
+
ha_cluster_install_cloud_agents |
ternary(__ha_cluster_cloud_agents_packages, [])
ternary(__ha_cluster_cloud_agents_packages[ansible_architecture]
| d(__ha_cluster_cloud_agents_packages['noarch'] | d([])),
[])
+
ha_cluster_fence_agent_packages }}"
state: "{{ 'latest' if ha_cluster_use_latest_packages else 'present' }}"
Expand Down
14 changes: 3 additions & 11 deletions tests/tests_cluster_basic_cloud_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,16 @@
vars:
ha_cluster_cluster_name: test-cluster
ha_cluster_install_cloud_agents: true
# Only agents available on all architectures are listed so that we don't
# need a special case for each architecture.
__test_agents_rhel_8:
- resource-agents-aliyun
- resource-agents-gcp
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
# RHEL 10 has the same agents as RHEL 9
__test_agents_rhel_9:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-compute
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
__test_agents: "{{ (ansible_facts['distribution_major_version'] == '8') |
ternary(__test_agents_rhel_8, __test_agents_rhel_9) }}"
__test_eligible: "{{
Expand Down
36 changes: 26 additions & 10 deletions vars/CentOS_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,29 @@ __ha_cluster_repos:
name: ResilientStorage

__ha_cluster_cloud_agents_packages:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-compute
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
x86_64:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
aarch64:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
ppc64le:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
s390x:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
noarch:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
17 changes: 11 additions & 6 deletions vars/CentOS_8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ __ha_cluster_repos:
name: ResilientStorage

__ha_cluster_cloud_agents_packages:
- resource-agents-aliyun
- resource-agents-gcp
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
x86_64:
- resource-agents-aliyun
- resource-agents-gcp
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
noarch:
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
38 changes: 28 additions & 10 deletions vars/CentOS_9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,31 @@ __ha_cluster_repos:
name: ResilientStorage

__ha_cluster_cloud_agents_packages:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-compute
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
x86_64:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-compute
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
aarch64:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
ppc64le:
- fence-agents-compute
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
s390x:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
noarch:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
2 changes: 1 addition & 1 deletion vars/Fedora.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: MIT
---
# Put internal variables here with Fedora specific values.
__ha_cluster_cloud_agents_packages: []
__ha_cluster_cloud_agents_packages: {}
2 changes: 1 addition & 1 deletion vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ __ha_cluster_fullstack_node_packages:
- resource-agents
- pacemaker

__ha_cluster_cloud_agents_packages: []
__ha_cluster_cloud_agents_packages: {}

__ha_cluster_qdevice_node_packages:
- corosync-qdevice
Expand Down
36 changes: 26 additions & 10 deletions vars/RedHat_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,29 @@ __ha_cluster_repos:
name: Resilient Storage

__ha_cluster_cloud_agents_packages:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-compute
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
x86_64:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
aarch64:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
ppc64le:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
s390x:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
noarch:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
17 changes: 11 additions & 6 deletions vars/RedHat_8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ __ha_cluster_repos:
name: Resilient Storage

__ha_cluster_cloud_agents_packages:
- resource-agents-aliyun
- resource-agents-gcp
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
x86_64:
- resource-agents-aliyun
- resource-agents-gcp
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
noarch:
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-gce
38 changes: 28 additions & 10 deletions vars/RedHat_9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,31 @@ __ha_cluster_repos:
name: Resilient Storage

__ha_cluster_cloud_agents_packages:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-compute
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
x86_64:
- resource-agents-cloud
- fence-agents-aliyun
- fence-agents-aws
- fence-agents-azure-arm
- fence-agents-compute
- fence-agents-gce
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
aarch64:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
ppc64le:
- fence-agents-compute
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
- fence-agents-openstack
s390x:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
- fence-agents-kubevirt
noarch:
- fence-agents-ibm-powervs
- fence-agents-ibm-vpc
2 changes: 1 addition & 1 deletion vars/Suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ __ha_cluster_role_essential_packages:

__ha_cluster_fullstack_node_packages: []

__ha_cluster_cloud_agents_packages: []
__ha_cluster_cloud_agents_packages: {}

__ha_cluster_qdevice_node_packages:
- corosync-qdevice
Expand Down

0 comments on commit 38a2dca

Please sign in to comment.