forked from sap-linuxlab/community.sap_install
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRedHat.yml
More file actions
168 lines (150 loc) · 6.99 KB
/
Copy pathRedHat.yml
File metadata and controls
168 lines (150 loc) · 6.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# SPDX-License-Identifier: Apache-2.0
---
# Default repositories if platform does not override them.
# This selection does not affect imported __ha_cluster_repos due to precedence.
__sap_ha_pacemaker_cluster_repos:
- id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-e4s-rpms"
name: High Availability
# Dictionary with repos for each platform
__sap_ha_pacemaker_cluster_repos_dict:
cloud_aws_ec2_vs:
- id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-e4s-rhui-rpms"
name: High Availability
cloud_gcp_ce_vm:
- id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-e4s-rhui-rpms"
name: High Availability
cloud_ibmcloud_powervs:
- id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-e4s-rpms"
name: High Availability E4S (4-Year) for Power, little endian
# - id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-eus-rpms"
# name: High Availability EUS (2-Year) for Power, little endian
# - id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-rpms"
# name: High Availability for Power, little endian
cloud_ibmcloud_vs:
- id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-e4s-rpms"
name: High Availability E4S (4-Year)
# - id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-eus-rpms"
# name: High Availability EUS (2-Year)
# - id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-rpms"
# name: High Availability
cloud_msazure_vm:
- id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-e4s-rhui-rpms"
name: High Availability
- id: "rhui-microsoft-azure-rhel{{ ansible_distribution_major_version }}-sap-ha"
name: Microsoft Azure RPMs for Red Hat Enterprise Linux {{ ansible_distribution_major_version }} (rhel{{ ansible_distribution_major_version }}-sap-ha)
hyp_ibmpower_vm:
- id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-e4s-rpms"
name: High Availability E4S (4-Year) for Power, little endian
# - id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-eus-rpms"
# name: High Availability EUS (2-Year) for Power, little endian
# - id: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-rpms"
# name: High Availability for Power, little endian
__sap_ha_pacemaker_cluster_halib_package: sap-cluster-connector
# List of configuration lines that must be added to the instance profiles for SAP HA Interface setup.
__sap_ha_pacemaker_cluster_connector_config_lines:
- "service/halib = $(DIR_EXECUTABLE)/saphascriptco.so"
- "service/halib_cluster_connector = /usr/bin/sap_cluster_connector"
# Cluster command to manage resources - pcs commands in Redhat OS family.
__sap_ha_pacemaker_cluster_command:
resource_stop: "pcs resource disable"
resource_start: "pcs resource enable"
resource_restart: "pcs resource restart"
resource_cleanup: "pcs resource cleanup"
# Dictionary with default cluster properties
__sap_ha_pacemaker_cluster_cluster_properties_default:
stonith-enabled: true
stonith-timeout: 150 # Default value 150 is for SBD method.
# Default corosync options - OS specific
__sap_ha_pacemaker_cluster_corosync_totem_default:
options: {}
# Make sure that there is always the minimal default fed into the included role.
# This is combined with the custom list 'sap_ha_pacemaker_cluster_fence_agent_packages'.
__sap_ha_pacemaker_cluster_fence_agent_packages_minimal:
- fence-agents-all
# Dictionary with fence packages for each platform
__sap_ha_pacemaker_cluster_fence_agent_packages_dict:
cloud_aws_ec2_vs:
- fence-agents-aws
cloud_gcp_ce_vm:
- fence-agents-gce
cloud_ibmcloud_powervs:
- fence-agents-ibm-powervs
cloud_ibmcloud_vs:
- fence-agents-ibm-vpc
cloud_msazure_vm:
- fence-agents-azure-arm
hyp_ibmpower_vm:
- fence-agents-lpar
# Dictionary with extra platform specific packages
__sap_ha_pacemaker_cluster_platform_extra_packages_dict:
cloud_aws_ec2_vs:
- "{{ 'resource-agents-cloud' if ansible_distribution_major_version is version('9', '>=') else 'awscli' }}"
- "{{ 'awscli2' if ansible_distribution_version is version('9.5', '>=') else '' }}"
cloud_gcp_ce_vm:
- resource-agents-gcp
cloud_msazure_vm:
- "{{ 'resource-agents-cloud' if ansible_distribution_major_version is version('9', '>=') else '' }}"
- socat
# Dictionary with additional cluster packages for specific scenarios
__sap_ha_pacemaker_cluster_sap_extra_packages_dict:
hana_angi:
- sap-hana-ha
hana_scaleout:
- resource-agents-sap-hana-scaleout
hana_scaleup:
- resource-agents-sap-hana
nwas:
- resource-agents-sap
- "{{ 'sap-cluster-connector' if sap_ha_pacemaker_cluster_enable_cluster_connector else '' }}"
# Dictionary with preferred platform specific VIP method that differs from default
# __sap_ha_pacemaker_cluster_vip_method_dict:
# Resource agents - fully qualified names
__sap_ha_pacemaker_cluster_resource_agents:
saphanatopology: "ocf:heartbeat:SAPHanaTopology"
saphana: "ocf:heartbeat:SAPHana"
saphanacontroller: "ocf:heartbeat:SAPHanaController"
saphanafilesystem: "ocf:heartbeat:SAPHanaFilesystem"
sapstartsrv: "ocf:heartbeat:SAPStartSrv"
__sap_ha_pacemaker_cluster_saphanasr_angi_available: false
# Default SAP HANA hook parameters combined based on user decision
__sap_ha_pacemaker_cluster_hook_hana_scaleup_perf:
saphanasr:
- provider: SAPHanaSR
path: /usr/share/SAPHanaSR/srHook/
options:
- name: execution_order
value: 1
chksrv:
- provider: ChkSrv
path: /usr/share/SAPHanaSR/srHook/
options:
- name: execution_order
value: 2
- name: action_on_lost
value: stop
__sap_ha_pacemaker_cluster_hook_hana_scaleup_perf_angi:
saphanasr:
- provider: HanaSR
path: /usr/share/sap-hana-ha/
options:
- name: execution_order
value: 1
chksrv:
- provider: ChkSrv
path: /usr/share/sap-hana-ha/
options:
- name: execution_order
value: 2
- name: action_on_lost
value: stop
- name: stop_timeout
value: 25
__sap_ha_pacemaker_cluster_hook_hana_scaleout: []
__sap_ha_pacemaker_cluster_hook_hana_scaleout_angi: []
# Enable default OS recommended hooks
sap_ha_pacemaker_cluster_hana_hook_tkover: false
sap_ha_pacemaker_cluster_hana_hook_chksrv: true
# Central Services Cluster Simple Mount: Enabled as default
# TODO: Enable when SAPStartSrv resource agents are available on Red Hat
sap_ha_pacemaker_cluster_nwas_cs_ers_simple_mount: true
__sap_ha_pacemaker_cluster_nwas_simple_mount_version: 4.15.1