-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sap_ha_pacemaker_cluster: fix ibm powervm stonith
- Loading branch information
1 parent
ba872db
commit 6ace923
Showing
3 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
roles/sap_ha_pacemaker_cluster/tasks/platform/register_sysinfo_hyp_ibmpower_vm.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,30 @@ | ||
--- | ||
# Ansible facts rely on SMBIOS/DMI, which does not exist on ppc64le CPU Architecture. | ||
# Use Open Firmware (OF) device tree values | ||
|
||
# Do not use cat on /proc files to avoid error 'ignored null byte in input' | ||
|
||
|
||
# The System's Machine Type and Machine Serial Number (MTMS) is a combined string, for example '9009-22A' as Machine Type + '_' + '11A111' as Machine Serial Number | ||
# This is an alternative value to populate --managed instead of the IBM PowerVM HMC System Name, | ||
# which works with the command 'lssyscfg -r lpar -m <<--managed value of HMC System Name or System MTMS or System UUID>> | ||
- name: SAP HA Prepare Pacemaker - IBM Power VM - HMC System (aka. Hypervisor Node) Machine Type and Machine Serial Number (MTMS) | ||
ansible.builtin.shell: | | ||
set -o pipefail && echo $(tr -d '\0' < /proc/device-tree/model | sed 's/IBM,//g')*$(tr -d '\0' < /proc/device-tree/ibm,hardware-sn) | ||
register: __sap_ha_pacemaker_cluster_register_ibmpower_vm_hmc_system_host_mtms_gui_string | ||
changed_when: false | ||
check_mode: false | ||
|
||
- name: SAP HA Prepare Pacemaker - IBM Power VM - HMC System's Partition Name of the Virtual Machine | ||
ansible.builtin.shell: | | ||
set -o pipefail && echo $(tr -d '\0' < /proc/device-tree/ibm,partition-name) | ||
register: __sap_ha_pacemaker_cluster_register_ibmpower_vm_hmc_system_partition_name | ||
changed_when: false | ||
check_mode: false | ||
|
||
- name: SAP HA Prepare Pacemaker - IBM Power VM - HMC System's Partition UUID of the Virtual Machine | ||
ansible.builtin.shell: | | ||
set -o pipefail && echo $(tr -d '\0' < /proc/device-tree/ibm,partition-uuid) | ||
register: __sap_ha_pacemaker_cluster_register_ibmpower_vm_hmc_system_partition_uuid | ||
changed_when: false | ||
check_mode: false |