-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #931 from ja9fuchs/simplemount-on-rhel
sap_ha_pacemaker_cluster: enable Simple Mount on RHEL
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
roles/sap_ha_pacemaker_cluster/tasks/RedHat/pre_steps_nwas_ascs_ers.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
--- | ||
# Identify the version of the resource agents and disable | ||
# the use of "SimpleMount" if a minimum version is not satisfied. | ||
|
||
- name: "SAP HA Prepare Pacemaker - Block for detection of 'SAPStartSrv' availability" | ||
block: | ||
|
||
- name: "SAP HA Prepare Pacemaker - Check the resource agents package" | ||
ansible.builtin.shell: | ||
set -o pipefail && \ | ||
dnf info resource-agents-sap | awk '/^Version/ {print $3}' | sort | tail -n1 | ||
register: __sap_ha_pacemaker_cluster_sapstartsrv_check | ||
changed_when: false | ||
failed_when: false | ||
|
||
- name: "SAP HA Prepare Pacemaker - Disable Simple Mount when min. package version is not available" | ||
ansible.builtin.set_fact: | ||
__sap_ha_pacemaker_cluster_nwas_cs_ers_simple_mount: false | ||
when: | ||
- sap_ha_pacemaker_cluster_nwas_cs_ers_simple_mount | bool | ||
- __sap_ha_pacemaker_cluster_sapstartsrv_check.stdout is defined | ||
- "(__sap_ha_pacemaker_cluster_sapstartsrv_check.stdout) is version(__sap_ha_pacemaker_cluster_nwas_simple_mount_version, '<')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters