File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
roles/sap_vm_provision/tasks/platform_ansible/aws_ec2_vs Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 11---
22
3+ # (SUSE specific) Requirement for fence agent: stonith:external/ec2
4+ # All instances in cluster need to be tagged with tag configured in agent
5+ # 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
8+ - name : AWS EC2 Instances - Ensure pacemaker tag is present
9+ no_log : " {{ __sap_vm_provision_no_log }}"
10+ amazon.aws.ec2_tag :
11+ access_key : " {{ sap_vm_provision_aws_access_key }}"
12+ secret_key : " {{ sap_vm_provision_aws_secret_access_key }}"
13+ resource : " {{ hostvars[host_node].ansible_board_asset_tag }}"
14+ state : present
15+ tags :
16+ pacemaker : " {{ inventory_hostname_short }}"
17+ loop :
18+ " {{
19+ (groups[sap_vm_provision_group_hana_primary] + groups[sap_vm_provision_group_hana_secondary]
20+ if groups[sap_vm_provision_group_hana_secondary] is defined and groups[sap_vm_provision_group_hana_secondary] else [])
21+ + (groups[sap_vm_provision_group_anydb_primary] + groups[sap_vm_provision_group_anydb_secondary]
22+ if groups[sap_vm_provision_group_anydb_secondary] is defined and groups[sap_vm_provision_group_anydb_secondary] else [])
23+ + (groups[sap_vm_provision_group_nwas_ascs] + groups[sap_vm_provision_group_nwas_ers]
24+ if groups[sap_vm_provision_group_nwas_ers] is defined and groups[sap_vm_provision_group_nwas_ers] else [])
25+ }}"
26+ loop_control :
27+ loop_var : host_node
28+ when : ansible_os_family == 'Suse'
29+
30+
331- name : Gather information about AWS account
432 register : __sap_vm_provision_task_aws_account_info
533 no_log : " {{ __sap_vm_provision_no_log }}"
You can’t perform that action at this time.
0 commit comments