Skip to content

Commit fe6232e

Browse files
committed
feat: restrict pacemaker tagging to SUSE
1 parent 16c3026 commit fe6232e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roles/sap_vm_provision/tasks/platform_ansible/aws_ec2_vs/execute_setup_ha.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22

3-
# Requirement for fence agent: stonith:external/ec2
3+
# (SUSE specific) Requirement for fence agent: stonith:external/ec2
44
# All instances in cluster need to be tagged with tag configured in agent
55
# sap_ha_pacemaker_cluster role configures default tag name 'pacemaker' with value of 'inventory_hostname_short'
6+
# https://documentation.suse.com/sbp/sap-15/html/SLES4SAP-hana-sr-guide-perfopt-15-aws/index.html#id-tagging-the-ec2-instances
7+
# https://docs.aws.amazon.com/sap/latest/sap-hana/sap-hana-on-aws-stonith-device.html
68
- name: AWS EC2 Instances - Ensure pacemaker tag is present
79
no_log: "{{ __sap_vm_provision_no_log }}"
810
amazon.aws.ec2_tag:
@@ -23,6 +25,7 @@
2325
}}"
2426
loop_control:
2527
loop_var: host_node
28+
when: ansible_os_family == 'Suse'
2629

2730

2831
- name: Gather information about AWS account

0 commit comments

Comments
 (0)