diff --git a/roles/sap_ha_pacemaker_cluster/DEPRECATED_VARIABLES.md b/roles/sap_ha_pacemaker_cluster/DEPRECATED_VARIABLES.md
new file mode 100644
index 000000000..25aa5e396
--- /dev/null
+++ b/roles/sap_ha_pacemaker_cluster/DEPRECATED_VARIABLES.md
@@ -0,0 +1,54 @@
+# sap_ha_pacemaker_cluster Deprecated input variables
+
+This deprecation of input variables is part of an ongoing effort to improve the codebase by removing unnecessary elements and streamlining the overall design.
+
+These variables fall into a few categories:
+- **Obsolete or unused**
+ - These variables are no longer used and are being removed to reduce technical debt and potential confusion.
+- **Renamed**
+ - These variables are being renamed to better reflect their current purpose and improve code readability.
+ - This is especially important when the variable's functionality has evolved over time.
+
+## Backwards compatibility
+All deprecated variables offer time limited backwards compatibility that will be removed in future.
+
+## List of deprecated input variables
+| ~~Old variable~~
New variable | Backwards compatible | Reason |
+| --------- | --------- | --------- |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_sid~~
sap_ha_pacemaker_cluster_nwas_sid | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr~~
sap_ha_pacemaker_cluster_nwas_ascs_instance_nr | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr~~
sap_ha_pacemaker_cluster_nwas_ers_instance_nr | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_instance_name~~
sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_instance_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_instance_name~~
sap_ha_pacemaker_cluster_nwas_ers_sapinstance_instance_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_start_profile_string~~
sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_start_profile_string | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_start_profile_string~~
sap_ha_pacemaker_cluster_nwas_ers_sapinstance_start_profile_string | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_filesystem_resource_name~~
sap_ha_pacemaker_cluster_nwas_ascs_filesystem_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_name~~
sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_sapstartsrv_resource_name~~
sap_ha_pacemaker_cluster_nwas_ascs_sapstartsrv_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ers_filesystem_resource_name~~
sap_ha_pacemaker_cluster_nwas_ers_filesystem_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_resource_name~~
sap_ha_pacemaker_cluster_nwas_ers_sapinstance_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ers_sapstartsrv_resource_name~~
sap_ha_pacemaker_cluster_nwas_ers_sapstartsrv_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_automatic_recover_bool~~
sap_ha_pacemaker_cluster_nwas_cs_sapinstance_automatic_recover_bool | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_stickiness~~
sap_ha_pacemaker_cluster_nwas_cs_sapinstance_resource_stickiness | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_migration_threshold~~
sap_ha_pacemaker_cluster_nwas_cs_sapinstance_ensa1_migration_threshold | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_failure_timeout~~
sap_ha_pacemaker_cluster_nwas_cs_sapinstance_ensa1_failure_timeout | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_group_stickiness~~
sap_ha_pacemaker_cluster_nwas_cs_group_stickiness | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_ensa1~~
sap_ha_pacemaker_cluster_nwas_cs_ensa1 | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_simple_mount~~
sap_ha_pacemaker_cluster_nwas_cs_ers_simple_mount | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_ip_address~~
sap_ha_pacemaker_cluster_vip_nwas_ascs_ip_address | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_name~~
sap_ha_pacemaker_cluster_vip_nwas_ascs_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_vip_nwas_abap_ers_ip_address~~
sap_ha_pacemaker_cluster_vip_nwas_ers_ip_address | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_name~~
sap_ha_pacemaker_cluster_vip_nwas_ers_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_group_name~~
sap_ha_pacemaker_cluster_vip_nwas_ascs_resource_group_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_group_name~~
sap_ha_pacemaker_cluster_vip_nwas_ers_resource_group_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_healthcheck_nwas_abap_ascs_resource_name~~
sap_ha_pacemaker_cluster_healthcheck_nwas_ascs_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_healthcheck_nwas_abap_ers_resource_name~~
sap_ha_pacemaker_cluster_healthcheck_nwas_ers_resource_name | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_healthcheck_nwas_abap_ascs_id~~
sap_ha_pacemaker_cluster_healthcheck_nwas_ascs_id | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_healthcheck_nwas_abap_ers_id~~
sap_ha_pacemaker_cluster_healthcheck_nwas_ers_id | :heavy_check_mark: | Removal of `_abap_` |
+| ~~sap_ha_pacemaker_cluster_storage_nfs_filesytem_type~~
sap_ha_pacemaker_cluster_storage_nfs_filesystem_type | :heavy_check_mark: | Typo |
+
+
+## Status explanation:
+- Strikethrough - Name of deprecated variable
+- :heavy_check_mark: - Variable is removed from defaults and readme, but still supported.
+- :x: - Variable is completely removed and not supported
diff --git a/roles/sap_ha_pacemaker_cluster/README.md b/roles/sap_ha_pacemaker_cluster/README.md
index 97491599f..a74280e49 100644
--- a/roles/sap_ha_pacemaker_cluster/README.md
+++ b/roles/sap_ha_pacemaker_cluster/README.md
@@ -70,6 +70,10 @@ Managed nodes:
| SAP HANA scale-up (performance-optimized) 2 nodes | SAPHanaSR-angi | :heavy_check_mark: |
| SAP NetWeaver (ABAP) ASCS and ERS 2 nodes | Classic | :heavy_check_mark: |
| SAP NetWeaver (ABAP) ASCS and ERS 2 nodes | Simple Mount | :heavy_check_mark: |
+| SAP NetWeaver (JAVA) SCS and ERS 2 nodes | Classic | :heavy_check_mark: |
+| SAP NetWeaver (JAVA) SCS and ERS 2 nodes | Simple Mount | :heavy_check_mark: |
+
+**NOTE: SAP Netweaver ASCS/ERS and SCS/ERS are ENSA2 by default, but ENSA1 is also supported.**
@@ -166,18 +170,8 @@ Minimum required parameters for all clusters:
Additional minimum requirements depend on the type of cluster setup and on the target platform.
-### sap_ha_pacemaker_cluster_hacluster_user_password
-
-- _Type:_ `string`
-
-**Mandatory Input Parameter.**
-The password of the `hacluster` user which is created during pacemaker installation.
-Inherits the value of `ha_cluster_hacluster_password`, when defined.
-
-
### sap_ha_pacemaker_cluster_aws_access_key_id
-
-- _Type:_ `string`
+- _Type:_ `string`
AWS access key to allow control of instances (for example for fencing operations).
Mandatory for the cluster nodes setup on AWS EC2 instances, when:
@@ -185,8 +179,7 @@ Mandatory for the cluster nodes setup on AWS EC2 instances, when:
2. `sap_ha_pacemaker_cluster_aws_credentials_setup` is `true`
### sap_ha_pacemaker_cluster_aws_credentials_setup
-
-- _Type:_ `string`
+- _Type:_ `string`
Set this parameter to 'true' to store AWS credentials into /root/.aws/credentials.
Requires: `sap_ha_pacemaker_cluster_aws_access_key_id` and `sap_ha_pacemaker_cluster_aws_secret_access_key`
@@ -194,15 +187,13 @@ Mandatory for the cluster nodes setup on AWS EC2 instances, when:
1. IAM Role or Instance profile is not attached to EC2 instance.
### sap_ha_pacemaker_cluster_aws_region
-
-- _Type:_ `string`
+- _Type:_ `string`
The AWS region in which the instances to be used for the cluster setup are located.
Mandatory for cluster nodes setup on AWS EC2 instances.
### sap_ha_pacemaker_cluster_aws_secret_access_key
-
-- _Type:_ `string`
+- _Type:_ `string`
AWS secret key, paired with the access key for instance control.
Mandatory for the cluster nodes setup on AWS EC2 instances, when:
@@ -210,24 +201,21 @@ Mandatory for the cluster nodes setup on AWS EC2 instances, when:
2. `sap_ha_pacemaker_cluster_aws_credentials_setup` is `true`
### sap_ha_pacemaker_cluster_aws_vip_update_rt
-
-- _Type:_ `string`
+- _Type:_ `string`
List one more routing table IDs for managing Virtual IP failover through routing table changes.
Multiple routing tables must be defined as a comma-separated string (no spaces).
Mandatory for the VIP resource configuration in AWS EC2 environments.
### sap_ha_pacemaker_cluster_cluster_name
-
-- _Type:_ `string`
+- _Type:_ `string`
The name of the pacemaker cluster.
Inherits the `ha_cluster` LSR native parameter `ha_cluster_cluster_name` if not defined.
If not defined, the `ha_cluster` Linux System Role default will be used.
### sap_ha_pacemaker_cluster_cluster_nodes
-
-- _Type:_ `list`
+- _Type:_ `list`
List of cluster nodes and associated attributes to describe the target SAP HA environment.
This is required for the HANA System Replication configuration.
@@ -235,16 +223,16 @@ Synonym for this parameter is `sap_hana_cluster_nodes`.
Mandatory to be defined for HANA clusters.
- **hana_site**
- Site of the cluster and/or SAP HANA System Replication node (for example 'DC01').
Mandatory for HANA clusters (sudo config for system replication).
+Site of the cluster and/or SAP HANA System Replication node (for example 'DC01').
Mandatory for HANA clusters (sudo config for system replication).
- **node_ip**
- IP address of the node used for HANA System Replication.
_Optional. Currently not needed/used in cluster configuration._
+IP address of the node used for HANA System Replication.
_Optional. Currently not needed/used in cluster configuration._
- **node_name**
- Name of the cluster node, should match the remote systems' hostnames.
_Optional. Currently not needed/used in cluster configuration._
+Hostname of the cluster node.
_Optional. Currently not needed/used in cluster configuration._
- **node_role**
- Role of the defined `node_name` in the SAP HANA cluster setup.
There must be only **one** primary, but there can be multiple secondary nodes.
_Optional. Currently not needed/used in cluster configuration._
+_Choices:_ `primary, secondary`
+Role of the defined `node_name` in the SAP HANA cluster setup.
There must be only **one** primary, but there can be multiple secondary nodes.
_Optional. Currently not needed/used in cluster configuration._
Example:
-
```yaml
sap_ha_pacemaker_cluster_cluster_nodes:
- hana_site: DC01
@@ -253,28 +241,23 @@ sap_ha_pacemaker_cluster_cluster_nodes:
node_role: primary
- hana_site: DC02
```
-
### sap_ha_pacemaker_cluster_cluster_properties
-
-- _Type:_ `dict`
-- _Default:_ `{'concurrent-fencing': True, 'stonith-enabled': True, 'stonith-timeout': 900}`
+- _Type:_ `dict`
+- _Default:_ `{'concurrent-fencing': True, 'stonith-enabled': True, 'stonith-timeout': 900}`
Standard pacemaker cluster properties are configured with recommended settings for cluster node fencing.
When no STONITH resource is defined, STONITH will be disabled and a warning displayed.
Example:
-
```yaml
sap_ha_pacemaker_cluster_cluster_properties:
concurrent-fencing: true
stonith-enabled: true
stonith-timeout: 900
```
-
### sap_ha_pacemaker_cluster_create_config_dest
-
-- _Type:_ `string`
-- _Default:_ `review_resource_config.yml`
+- _Type:_ `string`
+- _Default:_ `review_resource_config.yml`
The pacemaker cluster resource configuration optionally created by this role will be saved in a Yaml file in the current working directory.
Requires `sap_ha_pacemaker_cluster_create_config_varfile` to be enabled for generating the output file.
@@ -282,9 +265,8 @@ Specify a path/filename to save the file in a custom location.
The file can be used as input vars file for an Ansible playbook running the 'ha_cluster' Linux System Role.
### sap_ha_pacemaker_cluster_create_config_varfile
-
-- _Type:_ `bool`
-- _Default:_ `False`
+- _Type:_ `bool`
+- _Default:_ `False`
When enabled, all cluster configuration parameters this role constructs for executing the 'ha_cluster' Linux System role will be written into a file in Yaml format.
This allows using the output file later as input file for additional custom steps using the 'ha_cluster' role and covering the resource configuration in a cluster that was set up using this 'sap_ha_pacemaker_cluster' role.
@@ -292,23 +274,20 @@ When enabled this parameters file is also created when the playbook is run in ch
WARNING! This report may include sensitive details like secrets required for certain cluster resources!
### sap_ha_pacemaker_cluster_enable_cluster_connector
-
-- _Type:_ `bool`
-- _Default:_ `True`
+- _Type:_ `bool`
+- _Default:_ `True`
Enables/Disables the SAP HA Interface for SAP ABAP application server instances, also known as `sap_cluster_connector`.
Set this parameter to 'false' if the SAP HA interface should not be installed and configured.
### sap_ha_pacemaker_cluster_extra_packages
-
-- _Type:_ `list`
+- _Type:_ `list`
Additional extra packages to be installed, for instance specific resource packages.
For SAP clusters configured by this role, the relevant standard packages for the target scenario are automatically included.
### sap_ha_pacemaker_cluster_fence_agent_packages
-
-- _Type:_ `list`
+- _Type:_ `list`
Additional fence agent packages to be installed.
This is automatically combined with default packages in:
@@ -316,22 +295,19 @@ This is automatically combined with default packages in:
`__sap_ha_pacemaker_cluster_fence_agent_packages_platform`
### sap_ha_pacemaker_cluster_gcp_project
-
-- _Type:_ `string`
+- _Type:_ `string`
Google Cloud project name in which the target instances are installed.
Mandatory for the cluster setup on GCP instances.
### sap_ha_pacemaker_cluster_gcp_region_zone
-
-- _Type:_ `string`
+- _Type:_ `string`
Google Cloud Platform region zone ID.
Mandatory for the cluster setup on GCP instances.
### sap_ha_pacemaker_cluster_ha_cluster
-
-- _Type:_ `dict`
+- _Type:_ `dict`
The `ha_cluster` LSR native parameter `ha_cluster` can be used as a synonym.
Optional _**host_vars**_ parameter - if defined it must be set for each node.
@@ -340,7 +316,6 @@ Supported options can be reviewed in the `ha_cluster` Linux System Role [https:/
If not defined, the `ha_cluster` Linux System Role default will be used.
Example:
-
```yaml
sap_ha_pacemaker_cluster_ha_cluster:
corosync_addresses:
@@ -348,33 +323,35 @@ sap_ha_pacemaker_cluster_ha_cluster:
- 192.168.2.10
node_name: nodeA
```
+### sap_ha_pacemaker_cluster_hacluster_user_password required
+- **Required**
+- _Type:_ `string`
-### sap_ha_pacemaker_cluster_hana_automated_register
+The password of the `hacluster` user which is created during pacemaker installation.
+Inherits the value of `ha_cluster_hacluster_password`, when defined.
-- _Type:_ `bool`
-- _Default:_ `True`
+### sap_ha_pacemaker_cluster_hana_automated_register
+- _Type:_ `bool`
+- _Default:_ `True`
Parameter for the 'SAPHana' cluster resource.
Define if a former primary should be re-registered automatically as secondary.
### sap_ha_pacemaker_cluster_hana_colocation_hana_vip_primary_name
-
-- _Type:_ `string`
-- _Default:_ `col_saphana_vip__HDB_primary`
+- _Type:_ `string`
+- _Default:_ `col_saphana_vip__HDB_primary`
Customize the cluster constraint name for VIP and SAPHana primary clone colocation.
### sap_ha_pacemaker_cluster_hana_colocation_hana_vip_secondary_name
-
-- _Type:_ `string`
-- _Default:_ `col_saphana_vip__HDB_readonly`
+- _Type:_ `string`
+- _Default:_ `col_saphana_vip__HDB_readonly`
Customize the cluster constraint name for VIP and SAPHana secondary clone colocation.
### sap_ha_pacemaker_cluster_hana_duplicate_primary_timeout
-
-- _Type:_ `int`
-- _Default:_ `7200`
+- _Type:_ `int`
+- _Default:_ `7200`
Parameter for the 'SAPHana' cluster resource.
Time difference needed between to primary time stamps, if a dual-primary situation occurs.
@@ -382,46 +359,40 @@ If the time difference is less than the time gap, then the cluster holds one or
This is to give an admin a chance to react on a failover. A failed former primary will be registered after the time difference is passed.
### sap_ha_pacemaker_cluster_hana_filesystem_resource_clone_name
-
-- _Type:_ `string`
-- _Default:_ `cln_SAPHanaFil__HDB`
+- _Type:_ `string`
+- _Default:_ `cln_SAPHanaFil__HDB`
Customize the cluster resource name of the SAP HANA Filesystem clone.
### sap_ha_pacemaker_cluster_hana_filesystem_resource_name
-
-- _Type:_ `string`
-- _Default:_ `rsc_SAPHanaFil__HDB`
+- _Type:_ `string`
+- _Default:_ `rsc_SAPHanaFil__HDB`
Customize the cluster resource name of the SAP HANA Filesystem.
### sap_ha_pacemaker_cluster_hana_global_ini_path
-
-- _Type:_ `string`
-- _Default:_ `/usr/sap//SYS/global/hdb/custom/config/global.ini`
+- _Type:_ `string`
+- _Default:_ `/usr/sap//SYS/global/hdb/custom/config/global.ini`
Path with location of global.ini for srHook update
### sap_ha_pacemaker_cluster_hana_hook_chksrv
-
-- _Type:_ `bool`
-- _Default:_ `False`
+- _Type:_ `bool`
+- _Default:_ `False`
Controls if ChkSrv srHook is enabled during srHook creation.
It is ignored when sap_ha_pacemaker_cluster_hana_hooks is defined.
### sap_ha_pacemaker_cluster_hana_hook_tkover
-
-- _Type:_ `bool`
-- _Default:_ `False`
+- _Type:_ `bool`
+- _Default:_ `False`
Controls if TkOver srHook is enabled during srHook creation.
It is ignored when sap_ha_pacemaker_cluster_hana_hooks is defined.
### sap_ha_pacemaker_cluster_hana_hooks
-
-- _Type:_ `list`
-- _Default:_ `[]`
+- _Type:_ `list`
+- _Default:_ `[]`
Customize required list of SAP HANA Hooks
Mandatory to include SAPHanaSR srHook in list.
@@ -429,753 +400,771 @@ Mandatory attributes are provider and path.
Example below shows mandatory SAPHanaSR, TkOver and ChkSrv hooks.
Example:
-
```yaml
sap_ha_pacemaker_cluster_hana_hooks:
-- options:
- - name: execution_order
- value: 1
- path: /usr/share/SAPHanaSR/
- provider: SAPHanaSR
-- options:
- - name: execution_order
- value: 2
- path: /usr/share/SAPHanaSR/
- provider: susTkOver
-- options:
- - name: execution_order
- value: 3
- - name: action_on_lost
- value: stop
- path: /usr/share/SAPHanaSR/
- provider: susChkSrv
+ - options:
+ - name: execution_order
+ value: 1
+ path: /usr/share/SAPHanaSR/
+ provider: SAPHanaSR
+ - options:
+ - name: execution_order
+ value: 2
+ path: /usr/share/SAPHanaSR/
+ provider: susTkOver
+ - options:
+ - name: execution_order
+ value: 3
+ - name: action_on_lost
+ value: stop
+ path: /usr/share/SAPHanaSR/
+ provider: susChkSrv
```
-
### sap_ha_pacemaker_cluster_hana_instance_nr
-
-- _Type:_ `string`
+- _Type:_ `string`
The instance number of the SAP HANA database which this role will configure in the cluster.
Inherits the value of `sap_hana_instance_number`, when defined.
-Mandatory for SAP HANA cluster setups.
+Mandatory for SAP HANA cluster scenarios.
### sap_ha_pacemaker_cluster_hana_order_hana_vip_primary_name
-
-- _Type:_ `string`
-- _Default:_ `ord_saphana_vip__HDB_primary`
+- _Type:_ `string`
+- _Default:_ `ord_saphana_vip__HDB_primary`
Customize the cluster constraint name for VIP and SAPHana primary clone order.
### sap_ha_pacemaker_cluster_hana_order_hana_vip_secondary_name
-
-- _Type:_ `string`
-- _Default:_ `ord_saphana_vip__HDB_readonly`
+- _Type:_ `string`
+- _Default:_ `ord_saphana_vip__HDB_readonly`
Customize the cluster constraint name for VIP and SAPHana secondary clone order.
### sap_ha_pacemaker_cluster_hana_order_topology_hana_name
-
-- _Type:_ `string`
-- _Default:_ `ord_saphana_saphanatop__HDB`
+- _Type:_ `string`
+- _Default:_ `ord_saphana_saphanatop__HDB`
Customize the cluster constraint name for SAPHana and Topology order.
### sap_ha_pacemaker_cluster_hana_prefer_site_takeover
-
-- _Type:_ `bool`
-- _Default:_ `True`
+- _Type:_ `bool`
+- _Default:_ `True`
Parameter for the 'SAPHana' cluster resource.
Set to "false" if the cluster should first attempt to restart the instance on the same node.
When set to "true" (default) a failover to secondary will be initiated on resource failure.
### sap_ha_pacemaker_cluster_hana_resource_clone_msl_name
-
-- _Type:_ `string`
-- _Default:_ `msl_SAPHana__HDB`
+- _Type:_ `string`
+- _Default:_ `msl_SAPHana__HDB`
Customize the cluster resource name of the SAP HANA DB resource master slave clone.
Master Slave clone is specific to Classic SAPHana resource on SUSE (non-angi).
### sap_ha_pacemaker_cluster_hana_resource_clone_name
-
-- _Type:_ `string`
-- _Default:_ `cln_SAPHana__HDB`
+- _Type:_ `string`
+- _Default:_ `cln_SAPHana__HDB`
Customize the cluster resource name of the SAP HANA DB resource clone.
### sap_ha_pacemaker_cluster_hana_resource_name
-
-- _Type:_ `string`
-- _Default:_ `rsc_SAPHana__HDB`
+- _Type:_ `string`
+- _Default:_ `rsc_SAPHana__HDB`
Customize the cluster resource name of the SAP HANA DB resource.
### sap_ha_pacemaker_cluster_hana_sid
+- _Type:_ `string`
-- _Type:_ `string`
-
-The SAP HANA SID of the instance that will be configured in the cluster.
+The SAP HANA System ID (SID) of the instance that will be configured in the cluster.
The SID must follow SAP specifications - see SAP Note 1979280.
Inherits the value of `sap_hana_sid`, when defined.
-Mandatory for SAP HANA cluster setups.
+Mandatory for SAP HANA cluster scenarios.
### sap_ha_pacemaker_cluster_hana_topology_resource_clone_name
-
-- _Type:_ `string`
-- _Default:_ `cln_SAPHanaTop__HDB`
+- _Type:_ `string`
+- _Default:_ `cln_SAPHanaTop__HDB`
Customize the cluster resource name of the SAP HANA Topology resource clone.
### sap_ha_pacemaker_cluster_hana_topology_resource_name
-
-- _Type:_ `string`
-- _Default:_ `rsc_SAPHanaTop__HDB`
+- _Type:_ `string`
+- _Default:_ `rsc_SAPHanaTop__HDB`
Customize the cluster resource name of the SAP HANA Topology resource.
### sap_ha_pacemaker_cluster_hanacontroller_resource_clone_name
-
-- _Type:_ `string`
-- _Default:_ `cln_SAPHanaCon__HDB`
+- _Type:_ `string`
+- _Default:_ `cln_SAPHanaCon__HDB`
Customize the cluster resource name of the SAP HANA Controller clone.
### sap_ha_pacemaker_cluster_hanacontroller_resource_name
-
-- _Type:_ `string`
-- _Default:_ `rsc_SAPHanaCon__HDB`
+- _Type:_ `string`
+- _Default:_ `rsc_SAPHanaCon__HDB`
Customize the cluster resource name of the SAP HANA Controller.
-### sap_ha_pacemaker_cluster_host_type
+### sap_ha_pacemaker_cluster_healthcheck_hana_primary_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip_health_check__HDB_primary`
+
+Name of the Virtual IP Health Check resource for primary HANA instance.
+
+### sap_ha_pacemaker_cluster_healthcheck_hana_secondary_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip_health_check__HDB_readonly`
+
+Name of the Virtual IP Health Check resource for read-only HANA instance.
+
+### sap_ha_pacemaker_cluster_healthcheck_nwas_abap_aas_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip_health_check__AAS`
+
+Name of the Virtual IP Health Check resource for NetWeaver AAS.
+
+### sap_ha_pacemaker_cluster_healthcheck_nwas_abap_pas_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip_health_check__PAS`
+
+Name of the Virtual IP Health Check resource for NetWeaver PAS.
-- _Type:_ `list`
-- _Default:_ `hana_scaleup_perf`
+### sap_ha_pacemaker_cluster_healthcheck_nwas_ascs_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip_health_check__ASCS`
+
+Name of the Virtual IP Health Check resource for NetWeaver ABAP Central Services (ASCS).
+
+### sap_ha_pacemaker_cluster_healthcheck_nwas_ers_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip_health_check__ERS`
+
+Name of the Virtual IP Health Check resource for NetWeaver Enqueue Replication Service (ERS).
+
+### sap_ha_pacemaker_cluster_healthcheck_nwas_scs_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip_health_check__SCS`
+
+Name of the Virtual IP Health Check resource for NetWeaver Central Services (SCS).
+
+### sap_ha_pacemaker_cluster_host_type
+- _Type:_ `list`
+- _Default:_ `hana_scaleup_perf`
+- _Choices:_ `hana_scaleup_perf, nwas_abap_ascs_ers, nwas_java_scs_ers`
The SAP landscape to for which the cluster is to be configured.
The default is a 2-node SAP HANA scale-up cluster.
### sap_ha_pacemaker_cluster_ibmcloud_api_key
-
-- _Type:_ `string`
+- _Type:_ `string`
The API key which is required to allow the control of instances (for example for fencing operations).
Mandatory for the cluster setup on IBM Cloud Virtual Server instances or IBM Power Virtual Server on IBM Cloud.
### sap_ha_pacemaker_cluster_ibmcloud_powervs_api_type
-
-- _Type:_ `string`
+- _Type:_ `string`
IBM Power Virtual Server API Endpoint type (public or private) dependent on network interface attachments for the target instances.
Mandatory for the cluster setup on IBM Power Virtual Server from IBM Cloud.
### sap_ha_pacemaker_cluster_ibmcloud_powervs_forward_proxy_url
-
-- _Type:_ `string`
+- _Type:_ `string`
IBM Power Virtual Server forward proxy url when IBM Power Virtual Server API Endpoint type is set to private.
When public network interface, can be ignored.
When private network interface, mandatory for the cluster setup on IBM Power Virtual Server from IBM Cloud.
### sap_ha_pacemaker_cluster_ibmcloud_powervs_workspace_crn
-
-- _Type:_ `string`
+- _Type:_ `string`
IBM Power Virtual Server Workspace service cloud resource name (CRN) identifier which contains the target instances
Mandatory for the cluster setup on IBM Power Virtual Server from IBM Cloud.
### sap_ha_pacemaker_cluster_ibmcloud_region
-
-- _Type:_ `string`
+- _Type:_ `string`
The IBM Cloud VS region name in which the instances are running.
Mandatory for the cluster setup on IBM Cloud Virtual Server instances or IBM Power Virtual Server on IBM Cloud.
### sap_ha_pacemaker_cluster_msazure_resource_group
-
-- _Type:_ `string`
+- _Type:_ `string`
Resource group name/ID in which the target instances are defined.
Mandatory for the cluster setup on MS Azure instances.
### sap_ha_pacemaker_cluster_msazure_subscription_id
-
-- _Type:_ `string`
+- _Type:_ `string`
Subscription ID of the MS Azure environment containing the target instances.
Mandatory for the cluster setup on MS Azure instances.
### sap_ha_pacemaker_cluster_nwas_abap_aas_instance_nr
-
-- _Type:_ `string`
+- _Type:_ `string`
Instance number of the NetWeaver ABAP AAS instance.
Mandatory for NetWeaver AAS cluster configuration.
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_ensa1
-
-- _Type:_ `bool`
-- _Default:_ `False`
-
-The standard NetWeaver ASCS/ERS cluster will be set up as ENSA2.
-Set this parameter to 'true' to configure it as ENSA1.
-
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_simple_mount
-
-- _Type:_ `bool`
-- _Default:_ `True`
-
-Enables preferred method for ASCS ERS ENSA2 clusters - Simple Mount
-Set this parameter to 'true' to configure ENSA2 Simple Mount.
+### sap_ha_pacemaker_cluster_nwas_abap_pas_instance_nr
+- _Type:_ `string`
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_filesystem_resource_name
+Instance number of the NetWeaver ABAP PAS instance.
+Mandatory for NetWeaver PAS cluster configuration.
-- _Type:_ `string`
-- _Default:_ `rsc_fs__ASCS`
+### sap_ha_pacemaker_cluster_nwas_ascs_filesystem_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_fs__ASCS`
Name of the filesystem resource for the ASCS instance.
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_group_stickiness
-
-- _Type:_ `string`
-- _Default:_ `3000`
+### sap_ha_pacemaker_cluster_nwas_ascs_instance_nr
+- _Type:_ `string`
-NetWeaver ASCS resource group stickiness to prefer the ASCS group to stay on the node it was started on.
-
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr
-
-- _Type:_ `string`
-
-Instance number of the NetWeaver ABAP ASCS instance.
+Instance number of the NetWeaver ABAP Central Services (ASCS) instance.
Mandatory for NetWeaver ASCS/ERS cluster configuration.
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_automatic_recover_bool
+### sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_instance_name
+- _Type:_ `string`
-- _Type:_ `bool`
-- _Default:_ `False`
+The name of the ASCS instance, typically the profile name.
+Mandatory for the NetWeaver ASCS/ERS cluster setup
+Recommended format _ASCS_
-NetWeaver ASCS instance resource option "AUTOMATIC_RECOVER".
+### sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_SAPInstance__ASCS`
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_failure_timeout
+Name of the ASCS instance resource.
-- _Type:_ `string`
-- _Default:_ `60`
+### sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_start_profile_string
+- _Type:_ `string`
-NetWeaver ASCS instance failure-timeout attribute.
-Only used for ENSA1 setups (see `sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_ensa1`). Default setup is ENSA2.
+The full path and name of the ASCS instance profile.
+Mandatory for the NetWeaver ASCS/ERS cluster setup.
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_migration_threshold
+### sap_ha_pacemaker_cluster_nwas_ascs_sapstartsrv_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_SAPStartSrv__ASCS`
-- _Type:_ `string`
-- _Default:_ `1`
+Name of the ASCS SAPStartSrv resource for simple mount.
-NetWeaver ASCS instance migration-threshold setting attribute.
-Only used for ENSA1 setups (see `sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_ensa1`). Default setup is ENSA2.
+### sap_ha_pacemaker_cluster_nwas_colocation_ascs_no_ers_name
+- _Type:_ `string`
+- _Default:_ `col_ascs_separate_`
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_instance_name
+Customize the cluster constraint name for ASCS and ERS separation colocation.
-- _Type:_ `string`
+### sap_ha_pacemaker_cluster_nwas_colocation_scs_no_ers_name
+- _Type:_ `string`
+- _Default:_ `col_ascs_separate_`
-The name of the ASCS instance, typically the profile name.
-Mandatory for the NetWeaver ASCS/ERS cluster setup
-Recommended format _ASCS_.
+Customize the cluster constraint name for SCS and ERS separation colocation.
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_name
+### sap_ha_pacemaker_cluster_nwas_cs_ensa1
+- _Type:_ `bool`
+- _Default:_ `False`
-- _Type:_ `string`
-- _Default:_ `rsc_SAPInstance__ASCS`
+The standard NetWeaver Central Services cluster will be set up as ENSA2.
+Set this parameter to 'true' to configure it as ENSA1.
-Name of the ASCS instance resource.
+### sap_ha_pacemaker_cluster_nwas_cs_ers_simple_mount
+- _Type:_ `bool`
+- _Default:_ `True`
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_stickiness
+Enables preferred method for Central Services (ASCS or SCS) ENSA2 clusters - Simple Mount.
+Set this parameter to 'true' to configure ENSA2 Simple Mount.
-- _Type:_ `string`
-- _Default:_ `5000`
+### sap_ha_pacemaker_cluster_nwas_cs_group_stickiness
+- _Type:_ `string`
+- _Default:_ `3000`
-NetWeaver ASCS instance resource stickiness attribute.
+NetWeaver Central Services (ASCS and SCS) resource group stickiness.
+Defines how sticky is Central Services group to the node it was started on.
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_start_profile_string
+### sap_ha_pacemaker_cluster_nwas_cs_sapinstance_automatic_recover_bool
+- _Type:_ `bool`
+- _Default:_ `False`
-- _Type:_ `string`
+NetWeaver Central Services (ASCS and SCS) instance resource option "AUTOMATIC_RECOVER".
-The full path and name of the ASCS instance profile.
-Mandatory for the NetWeaver ASCS/ERS cluster setup.
+### sap_ha_pacemaker_cluster_nwas_cs_sapinstance_ensa1_failure_timeout
+- _Type:_ `string`
+- _Default:_ `60`
-### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapstartsrv_resource_name
+NetWeaver Central Services (ASCS and SCS) instance failure-timeout attribute.
+Only used for ENSA1 setups (see `sap_ha_pacemaker_cluster_nwas_cs_ensa1`). Default setup is ENSA2.
-- _Type:_ `string`
-- _Default:_ `rsc_SAPStartSrv__ASCS`
+### sap_ha_pacemaker_cluster_nwas_cs_sapinstance_ensa1_migration_threshold
+- _Type:_ `string`
+- _Default:_ `1`
-Name of the ASCS SAPStartSrv resource for simple mount.
+NetWeaver Central Services (ASCS and SCS) instance migration-threshold setting attribute.
+Only used for ENSA1 setups (see `sap_ha_pacemaker_cluster_nwas_cs_ensa1`). Default setup is ENSA2.
-### sap_ha_pacemaker_cluster_nwas_abap_ers_filesystem_resource_name
+### sap_ha_pacemaker_cluster_nwas_cs_sapinstance_resource_stickiness
+- _Type:_ `string`
+- _Default:_ `5000`
-- _Type:_ `string`
-- _Default:_ `rsc_fs__ERS`
+NetWeaver Central Services (ASCS and SCS) instance resource stickiness attribute.
-Name of the filesystem resource for the ERS instance.
+### sap_ha_pacemaker_cluster_nwas_ers_filesystem_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_fs__ERS`
-### sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr
-
-- _Type:_ `string`
+Name of the filesystem resource for the ERS instance.
-Instance number of the NetWeaver ABAP ERS instance.
-Mandatory for NetWeaver ASCS/ERS cluster configuration.
+### sap_ha_pacemaker_cluster_nwas_ers_instance_nr
+- _Type:_ `string`
-### sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_automatic_recover_bool
+Instance number of the NetWeaver Enqueue Replication Service (ERS) instance.
+Mandatory for NetWeaver ASCS/ERS and SCS/ERS cluster configuration.
-- _Type:_ `bool`
-- _Default:_ `False`
+### sap_ha_pacemaker_cluster_nwas_ers_sapinstance_automatic_recover_bool
+- _Type:_ `bool`
+- _Default:_ `False`
NetWeaver ERS instance resource option "AUTOMATIC_RECOVER".
-### sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_instance_name
-
-- _Type:_ `string`
+### sap_ha_pacemaker_cluster_nwas_ers_sapinstance_instance_name
+- _Type:_ `string`
The name of the ERS instance, typically the profile name.
-Mandatory for the NetWeaver ASCS/ERS cluster setup.
+Mandatory for the NetWeaver ASCS/ERS and SCS/ERS clusters.
Recommended format _ERS_.
-### sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_resource_name
-
-- _Type:_ `string`
-- _Default:_ `rsc_SAPInstance__ERS`
+### sap_ha_pacemaker_cluster_nwas_ers_sapinstance_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_SAPInstance__ERS`
Name of the ERS instance resource.
-### sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_start_profile_string
-
-- _Type:_ `string`
+### sap_ha_pacemaker_cluster_nwas_ers_sapinstance_start_profile_string
+- _Type:_ `string`
The full path and name of the ERS instance profile.
-Mandatory for the NetWeaver ASCS/ERS cluster.
-
-### sap_ha_pacemaker_cluster_nwas_abap_ers_sapstartsrv_resource_name
+Mandatory for the NetWeaver ASCS/ERS and SCS/ERS clusters.
-- _Type:_ `string`
-- _Default:_ `rsc_SAPStartSrv__ERS`
+### sap_ha_pacemaker_cluster_nwas_ers_sapstartsrv_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_SAPStartSrv__ERS`
Name of the ERS SAPstartSrv resource for simple mount.
-### sap_ha_pacemaker_cluster_nwas_abap_pas_instance_nr
+### sap_ha_pacemaker_cluster_nwas_order_ascs_first_name
+- _Type:_ `string`
+- _Default:_ `ord_ascs_first_`
-- _Type:_ `string`
+Customize the cluster constraint name for ASCS starting before ERS order.
-Instance number of the NetWeaver ABAP PAS instance.
-Mandatory for NetWeaver PAS cluster configuration.
+### sap_ha_pacemaker_cluster_nwas_order_scs_first_name
+- _Type:_ `string`
+- _Default:_ `ord_ascs_first_`
-### sap_ha_pacemaker_cluster_nwas_abap_sid
+Customize the cluster constraint name for SCS starting before ERS order.
-- _Type:_ `string`
+### sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_clone_name
+- _Type:_ `string`
+- _Default:_ `cln_fs__sapmnt`
+
+Filesystem resource clone name for the shared filesystem /sapmnt.
+Enable this resource setup using `sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed`.
-SID of the NetWeaver instances.
-Mandatory for NetWeaver cluster configuration.
-Uses `sap_swpm_sid` if defined.
-Mandatory for NetWeaver cluster setups.
+### sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_fs__sapmnt`
-### sap_ha_pacemaker_cluster_nwas_colocation_ascs_no_ers_name
+Filesystem resource name for the shared filesystem /sapmnt.
+Optional, this is typically managed by the OS, but can as well be added to the cluster configuration.
+Enable this resource setup using `sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed`.
-- _Type:_ `string`
-- _Default:_ `col_ascs_separate_`
+### sap_ha_pacemaker_cluster_nwas_scs_filesystem_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_fs__SCS`
-Customize the cluster constraint name for ASCS and ERS separation colocation.
+Name of the filesystem resource for the SCS instance.
-### sap_ha_pacemaker_cluster_nwas_order_ascs_first_name
+### sap_ha_pacemaker_cluster_nwas_scs_instance_nr
+- _Type:_ `string`
-- _Type:_ `string`
-- _Default:_ `ord_ascs_first_`
+Instance number of the NetWeaver Central Services (SCS) instance.
+Mandatory for NetWeaver SCS/ERS cluster configuration.
-Customize the cluster constraint name for ASCS starting before ERS order.
+### sap_ha_pacemaker_cluster_nwas_scs_sapinstance_instance_name
+- _Type:_ `string`
-### sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_clone_name
+The name of the SCS instance, typically the profile name.
+Mandatory for the NetWeaver SCS/ERS cluster setup
+Recommended format _SCS_
-- _Type:_ `string`
-- _Default:_ `cln_fs__sapmnt`
+### sap_ha_pacemaker_cluster_nwas_scs_sapinstance_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_SAPInstance__SCS`
-Filesystem resource clone name for the shared filesystem /sapmnt.
-Enable this resource setup using `sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed`.
+Name of the SCS instance resource.
-### sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_name
+### sap_ha_pacemaker_cluster_nwas_scs_sapinstance_start_profile_string
+- _Type:_ `string`
-- _Type:_ `string`
-- _Default:_ `rsc_fs__sapmnt`
+The full path and name of the SCS instance profile.
+Mandatory for the NetWeaver SCS/ERS cluster setup.
-Filesystem resource name for the shared filesystem /sapmnt.
-Optional, this is typically managed by the OS, but can as well be added to the cluster configuration.
-Enable this resource setup using `sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed`.
+### sap_ha_pacemaker_cluster_nwas_scs_sapstartsrv_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_SAPStartSrv__SCS`
-### sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed
+Name of the SCS SAPStartSrv resource for simple mount.
-- _Type:_ `bool`
-- _Default:_ `False`
+### sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed
+- _Type:_ `bool`
+- _Default:_ `False`
Change this parameter to 'true' if the 3 shared filesystems `/usr/sap/trans`, `/usr/sap//SYS` and '/sapmnt' shall be configured as cloned cluster resources.
-### sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_clone_name
+### sap_ha_pacemaker_cluster_nwas_sid
+- _Type:_ `string`
-- _Type:_ `string`
-- _Default:_ `cln_fs__sys`
+System ID (SID) of the NetWeaver instances in Capital letters.
+Defaults to `sap_swpm_sid` if defined.
+Mandatory for NetWeaver cluster scenarios.
+
+### sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_clone_name
+- _Type:_ `string`
+- _Default:_ `cln_fs__sys`
Filesystem resource clone name for the shared filesystem /usr/sap//SYS.
Enable this resource setup using `sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed`.
### sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_name
-
-- _Type:_ `string`
-- _Default:_ `rsc_fs__sys`
+- _Type:_ `string`
+- _Default:_ `rsc_fs__sys`
Filesystem resource name for the transports filesystem /usr/sap//SYS.
Optional, this is typically managed by the OS, but can as well be added to the cluster configuration.
Enable this resource setup using `sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed`.
### sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_clone_name
-
-- _Type:_ `string`
-- _Default:_ `cln_fs__trans`
+- _Type:_ `string`
+- _Default:_ `cln_fs__trans`
Filesystem resource clone name for the shared filesystem /usr/sap/trans.
Enable this resource setup using `sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed`.
### sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_name
-
-- _Type:_ `string`
-- _Default:_ `rsc_fs__trans`
+- _Type:_ `string`
+- _Default:_ `rsc_fs__trans`
Filesystem resource name for the transports filesystem /usr/sap/trans.
Optional, this is typically managed by the OS, but can as well be added to the cluster configuration.
Enable this resource setup using `sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed`.
### sap_ha_pacemaker_cluster_operation_defaults
-
-- _Type:_ `dict`
-- _Default:_ `{'record-pending': True, 'timeout': 600}`
+- _Type:_ `dict`
+- _Default:_ `{'record-pending': True, 'timeout': 600}`
Set default operation parameters that will be valid for all pacemaker resources.
Example:
-
```yaml
sap_ha_pacemaker_cluster_operation_defaults:
record-pending: true
timeout: 600
```
-
### sap_ha_pacemaker_cluster_resource_defaults
-
-- _Type:_ `dict`
-- _Default:_ `{'migration-threshold': 5000, 'resource-stickiness': 3000}`
+- _Type:_ `dict`
+- _Default:_ `{'migration-threshold': 5000, 'resource-stickiness': 3000}`
Set default parameters that will be valid for all pacemaker resources.
Example:
-
```yaml
sap_ha_pacemaker_cluster_resource_defaults:
migration-threshold: 5000
resource-stickiness: 1000
```
-
### sap_ha_pacemaker_cluster_saphanasr_angi_detection
-
-- _Type:_ `string`
-- _Default:_ `True`
+- _Type:_ `string`
+- _Default:_ `True`
Disabling this variable enables to use Classic SAPHanaSR agents even on server, with SAPHanaSR-angi is available.
### sap_ha_pacemaker_cluster_sbd_devices
-
-- _Type:_ `list`
+- _Type:_ `list`
Required if `sap_ha_pacemaker_cluster_sbd_enabled` is enabled.
Provide list of block devices for Stonith SBD agent
Example:
-
```yaml
sap_ha_pacemaker_cluster_sbd_devices:
-- /dev/disk/by-id/scsi-3600
+ - /dev/disk/by-id/scsi-3600
```
-
### sap_ha_pacemaker_cluster_sbd_enabled
-
-- _Type:_ `bool`
+- _Type:_ `bool`
Set this parameter to 'true' to enable workflow to add Stonith SBD resource.
Stonith SBD resource has to be provided as part of `sap_ha_pacemaker_cluster_stonith_custom`.
-Default SBD agents are: `stonith:external/sbd` for SUSE and `stonith:fence_sbd` for Red Hat.
+Default SBD agents are: stonith:external/sbd for SLES and stonith:fence_sbd for RHEL
Example:
-
```yaml
sap_ha_pacemaker_cluster_sbd_devices:
-- /dev/disk/by-id/scsi-3600
+ - /dev/disk/by-id/scsi-3600
sap_ha_pacemaker_cluster_sbd_enabled: true
sap_ha_pacemaker_cluster_stonith_custom:
-- agent: stonith:external/sbd
- id: stonith_sbd
- instance_attrs:
- - attrs:
- - name: pcmk_delay_max
- value: 15
+ - agent: stonith:external/sbd
+ id: stonith_sbd
+ instance_attrs:
+ - attrs:
+ - name: pcmk_delay_max
+ value: 15
```
-
### sap_ha_pacemaker_cluster_sbd_options
-
-- _Type:_ `list`
+- _Type:_ `list`
Optional if `sap_ha_pacemaker_cluster_sbd_enabled` is enabled.
Provide list of SBD specific options that are added into SBD configuration file.
Example:
-
```yaml
sap_ha_pacemaker_cluster_sbd_options:
-- name: startmode
- value: clean
+ - name: startmode
+ value: clean
```
-
### sap_ha_pacemaker_cluster_sbd_watchdog
-
-- _Type:_ `str`
-- _Default:_ `/dev/watchdog`
+- _Type:_ `str`
+- _Default:_ `/dev/watchdog`
Optional if `sap_ha_pacemaker_cluster_sbd_enabled` is enabled.
Provide watchdog name to override default /dev/watchdog
### sap_ha_pacemaker_cluster_sbd_watchdog_modules
-
-- _Type:_ `list`
+- _Type:_ `list`
Optional if `sap_ha_pacemaker_cluster_sbd_enabled` is enabled.
Provide list of watchdog kernel modules to be loaded (creates /dev/watchdog* devices).
Example:
-
```yaml
sap_ha_pacemaker_cluster_sbd_watchdog_modules:
-- softdog
+ - softdog
```
-
### sap_ha_pacemaker_cluster_stonith_custom
-
-- _Type:_ `list`
+- _Type:_ `list`
Custom list of STONITH resource(s) to be configured in the cluster.
This definition override any defaults the role would apply otherwise.
Definition follows structure of ha_cluster_resource_primitives in linux-system-roles/ha_cluster
- **agent**
- Resource agent name, must contain the prefix "stonith:" to avoid mismatches or failures.
+**Required**
+_Type:_ `str`
+Resource agent name, must contain the prefix "stonith:" to avoid mismatches or failures.
- **id**
- Parameter `id` is required.
Name that will be used as the resource ID (name).
+_Type:_ `str`
+Parameter `id` is required.
Name that will be used as the resource ID (name).
- **instance_attrs**
- Defines resource agent params as list of name/value pairs.
Requires the mandatory options for the particular stonith resource agent to be defined, otherwise the setup will fail.
Example: stonith:fence_sbd agent requires devices option with list of SBD disks.
Example: stonith:external/sbd agent does not require devices option, but `sap_ha_pacemaker_cluster_sbd_devices`.
+_Type:_ `list`
+Defines resource agent params as list of name/value pairs.
Requires the mandatory options for the particular stonith resource agent to be defined, otherwise the setup will fail.
Example: stonith:fence_sbd agent requires devices option with list of SBD disks.
Example: stonith:external/sbd agent does not require devices option, but `sap_ha_pacemaker_cluster_sbd_devices`.
- **meta_attrs**
- Defines meta attributes as list of name/value pairs.
+_Type:_ `list`
+Defines meta attributes as list of name/value pairs.
- **name**
- WARNING! This option will be removed in future release.
+_Type:_ `str`
+WARNING! This option will be removed in future release.
- **operations**
- Defines list of resource agent operations.
+_Type:_ `list`
+Defines list of resource agent operations.
- **options**
- WARNING! This option will be removed in future release.
+_Type:_ `dict`
+WARNING! This option will be removed in future release.
Example:
-
```yaml
sap_ha_pacemaker_cluster_stonith_custom:
-- agent: stonith:fence_rhevm
- id: my-fence-resource
- instance_attrs:
- - attrs:
- - name: ip
- value: rhevm-server
- - name: username
- value: login-user
- - name: password
- value: login-user-password
- - name: pcmk_host_list
- value: node1,node2
- - name: power_wait
- value: 3
- meta_attrs:
- - attrs:
- - name: target-role
- value: Started
- operations:
- - action: start
- attrs:
- - name: interval
- value: 0
- - name: timeout
- value: 180
+ - agent: stonith:fence_rhevm
+ id: my-fence-resource
+ instance_attrs:
+ - attrs:
+ - name: ip
+ value: rhevm-server
+ - name: username
+ value: login-user
+ - name: password
+ value: login-user-password
+ - name: pcmk_host_list
+ value: node1,node2
+ - name: power_wait
+ value: 3
+ meta_attrs:
+ - attrs:
+ - name: target-role
+ value: Started
+ operations:
+ - action: start
+ attrs:
+ - name: interval
+ value: 0
+ - name: timeout
+ value: 180
```
-
### sap_ha_pacemaker_cluster_storage_definition
-
-- _Type:_ `list`
+- _Type:_ `list`
List of filesystem definitions used for filesystem cluster resources.
Options relevant, see example.
-Mandatory for SAP NetWeaver HA cluster configurations.
+Mandatory for SAP NetWeaver cluster without Simple Mount.
Reuse `sap_storage_setup_definition` if defined.
Reuse `sap_storage_setup_definition` will extract values 'mountpoint', 'nfs_filesystem_type', 'nfs_mount_options', 'nfs_path', 'nfs_server'.
Reuse `sap_storage_setup_definition` all options are documented under Ansible Role `sap_storage_setup`.
Note! For this variable, the argument specification does not list options, to avoid errors during reuse of `sap_storage_setup_definition` if defined.
Example:
-
```yaml
sap_ha_pacemaker_cluster_storage_definition:
-- mountpoint: /usr/sap
- name: usr_sap
- nfs_path: /usr/sap
- nfs_server: nfs-server.example.com:/
-- mountpoint: /usr/sap/trans
- name: usr_sap_trans
- nfs_path: /usr/sap/trans
- nfs_server: nfs-server.example.com:/
-- mountpoint: /sapmnt
- name: sapmnt
- nfs_filesystem_type: nfs
- nfs_mount_options: defaults
- nfs_path: /sapmnt
- nfs_server: nfs-server.example.com:/
+ - mountpoint: /usr/sap
+ name: usr_sap
+ nfs_path: /usr/sap
+ nfs_server: nfs-server.example.com:/
+ - mountpoint: /usr/sap/trans
+ name: usr_sap_trans
+ nfs_path: /usr/sap/trans
+ nfs_server: nfs-server.example.com:/
+ - mountpoint: /sapmnt
+ name: sapmnt
+ nfs_filesystem_type: nfs
+ nfs_mount_options: defaults
+ nfs_path: /sapmnt
+ nfs_server: nfs-server.example.com:/
```
-
-### sap_ha_pacemaker_cluster_storage_nfs_filesytem_type
-
-- _Type:_ `string`
-- _Default:_ `nfs`
+### sap_ha_pacemaker_cluster_storage_nfs_filesystem_type
+- _Type:_ `string`
+- _Default:_ `nfs`
Filesystem type of the NFS filesystems that are part of the cluster configuration.
### sap_ha_pacemaker_cluster_storage_nfs_mount_options
-
-- _Type:_ `string`
-- _Default:_ `defaults`
+- _Type:_ `string`
+- _Default:_ `defaults`
Mount options of the NFS filesystems that are part of the cluster configuration.
### sap_ha_pacemaker_cluster_storage_nfs_server
-
-- _Type:_ `string`
+- _Type:_ `string`
Default address of the NFS server, if not defined individually by filesystem.
### sap_ha_pacemaker_cluster_system_roles_collection
+- _Type:_ `string`
+- _Default:_ `fedora.linux_system_roles`
-- _Type:_ `string`
-- _Default:_ `fedora.linux_system_roles`
-
-Set which Ansible Collection to use for the Linux System Roles.
-Available values:
-- `fedora.linux_system_roles` - for community/upstream.
-- `redhat.rhel_system_roles` - for the RHEL System Roles for SAP, or for Red Hat Automation Hub.
+Reference to the Ansible Collection used for the Linux System Roles.
+For community/upstream, use 'fedora.linux_system_roles'.
+For RHEL System Roles for SAP, or Red Hat Automation Hub, use 'redhat.rhel_system_roles'.
### sap_ha_pacemaker_cluster_vip_client_interface
-
-- _Type:_ `string`
+- _Type:_ `string`
OS device name of the network interface to use for the Virtual IP configuration.
When there is only one interface on the system, its name will be used by default.
### sap_ha_pacemaker_cluster_vip_hana_primary_ip_address
-
-- _Type:_ `string`
+- _Type:_ `string`
The virtual IP of the primary HANA instance.
Mandatory parameter for HANA clusters.
### sap_ha_pacemaker_cluster_vip_hana_primary_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip__HDB_primary`
-- _Type:_ `string`
-- _Default:_ `rsc_vip__HDB_primary`
-
-Customize the name of the resource managing the Virtual IP of the primary HANA instance.
+Name of the Virtual IP resource for primary HANA instance.
### sap_ha_pacemaker_cluster_vip_hana_secondary_ip_address
-
-- _Type:_ `string`
+- _Type:_ `string`
The virtual IP for read-only access to the secondary HANA instance.
Optional parameter in HANA clusters.
-### sap_ha_pacemaker_cluster_vip_nwas_abap_aas_ip_address
+### sap_ha_pacemaker_cluster_vip_hana_secondary_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip__HDB_readonly`
+
+Name of the Virtual IP resource for read-only HANA instance.
-- _Type:_ `string`
+### sap_ha_pacemaker_cluster_vip_nwas_abap_aas_ip_address
+- _Type:_ `string`
Virtual IP of the NetWeaver AAS instance.
Mandatory for NetWeaver AAS cluster setup.
### sap_ha_pacemaker_cluster_vip_nwas_abap_aas_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip__AAS`
-- _Type:_ `string`
-- _Default:_ `rsc_vip__AAS`
+Name of the Virtual IP resource for NetWeaver AAS.
-Name of the SAPInstance resource for NetWeaver AAS.
-
-### sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_ip_address
-
-- _Type:_ `string`
+### sap_ha_pacemaker_cluster_vip_nwas_abap_pas_ip_address
+- _Type:_ `string`
-Virtual IP of the NetWeaver ASCS instance.
-Mandatory for NetWeaver ASCS/ERS cluster setup.
+Virtual IP of the NetWeaver PAS instance.
+Mandatory for NetWeaver PAS cluster setup.
-### sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_group_name
+### sap_ha_pacemaker_cluster_vip_nwas_abap_pas_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip__PAS`
-- _Type:_ `string`
-- _Default:_ `grp__ASCS`
+Name of the Virtual IP resource for NetWeaver PAS.
-Name of the NetWeaver ASCS resource group.
+### sap_ha_pacemaker_cluster_vip_nwas_ascs_ip_address
+- _Type:_ `string`
-### sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_name
+Virtual IP of the NetWeaver ABAP Central Services (ASCS) instance.
+Mandatory for NetWeaver ASCS/ERS cluster setup.
-- _Type:_ `string`
-- _Default:_ `rsc_vip__ASCS`
+### sap_ha_pacemaker_cluster_vip_nwas_ascs_resource_group_name
+- _Type:_ `string`
+- _Default:_ `grp__ASCS`
-Name of the SAPInstance resource for NetWeaver ASCS.
+Name of the NetWeaver ASCS resource group.
-### sap_ha_pacemaker_cluster_vip_nwas_abap_ers_ip_address
+### sap_ha_pacemaker_cluster_vip_nwas_ascs_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip__ASCS`
-- _Type:_ `string`
+Name of the Virtual IP resource for NetWeaver ABAP Central Services (ASCS).
-Virtual IP of the NetWeaver ERS instance.
-Mandatory for NetWeaver ASCS/ERS cluster setup.
+### sap_ha_pacemaker_cluster_vip_nwas_ers_ip_address
+- _Type:_ `string`
-### sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_group_name
+Virtual IP of the NetWeaver Enqueue Replication Service (ERS) instance.
+Mandatory for NetWeaver ASCS/ERS and SCS/ERS cluster setup.
-- _Type:_ `string`
-- _Default:_ `grp__ERS`
+### sap_ha_pacemaker_cluster_vip_nwas_ers_resource_group_name
+- _Type:_ `string`
+- _Default:_ `grp__ERS`
Name of the NetWeaver ERS resource group.
-### sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_name
-
-- _Type:_ `string`
-- _Default:_ `rsc_vip__ERS`
+### sap_ha_pacemaker_cluster_vip_nwas_ers_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip__ERS`
-Name of the SAPInstance resource for NetWeaver ERS.
+Name of the Virtual IP resource for NetWeaver Enqueue Replication Service (ERS).
-### sap_ha_pacemaker_cluster_vip_nwas_abap_pas_ip_address
-
-- _Type:_ `string`
-
-Virtual IP of the NetWeaver PAS instance.
-Mandatory for NetWeaver PAS cluster setup.
+### sap_ha_pacemaker_cluster_vip_nwas_scs_ip_address
+- _Type:_ `string`
-### sap_ha_pacemaker_cluster_vip_nwas_abap_pas_resource_name
+Virtual IP of the NetWeaver Central Services (SCS) instance.
+Mandatory for NetWeaver SCS/ERS cluster setup.
-- _Type:_ `string`
-- _Default:_ `rsc_vip__PAS`
+### sap_ha_pacemaker_cluster_vip_nwas_scs_resource_group_name
+- _Type:_ `string`
+- _Default:_ `grp__SCS`
-Name of the SAPInstance resource for NetWeaver PAS.
+Name of the NetWeaver SCS resource group.
-### sap_ha_pacemaker_cluster_vip_secondary_resource_name
+### sap_ha_pacemaker_cluster_vip_nwas_scs_resource_name
+- _Type:_ `string`
+- _Default:_ `rsc_vip__SCS`
-- _Type:_ `string`
-- _Default:_ `rsc_vip__HDB_readonly`
+Name of the Virtual IP resource for NetWeaver Central Services (SCS).
-Customize the name of the resource managing the Virtual IP of read-only access to the secondary HANA instance.
-
\ No newline at end of file
+
diff --git a/roles/sap_ha_pacemaker_cluster/defaults/main.yml b/roles/sap_ha_pacemaker_cluster/defaults/main.yml
index 457abf5fb..7947b0afe 100644
--- a/roles/sap_ha_pacemaker_cluster/defaults/main.yml
+++ b/roles/sap_ha_pacemaker_cluster/defaults/main.yml
@@ -29,7 +29,7 @@ sap_ha_pacemaker_cluster_create_config_dest: "review_resource_config.yml"
# This variable is currently only required for HANA nodes to define
# - hana_site:
# Other options are needed in the separate HSR setup role.
-sap_ha_pacemaker_cluster_cluster_nodes: "{{ sap_hana_cluster_nodes | default([]) }}"
+sap_ha_pacemaker_cluster_cluster_nodes: "{{ sap_hana_cluster_nodes | d([]) }}"
# Resource defaults are defined differently by cluster type in different tasks, if not custom defined.
sap_ha_pacemaker_cluster_resource_defaults: {}
@@ -44,12 +44,11 @@ sap_ha_pacemaker_cluster_operation_defaults: {}
# hana_scaleout (not yet)
# nwas_abap_ascs_ers (available)
# nwas_abap_pas_aas (not yet)
-# nwas_java_scs_ers (maybe)
+# nwas_java_scs_ers (available)
# 'sap_ha_pacemaker_cluster_host_type' is converted from string to list type in
# 'tasks/ascertain_sap_landscape.yml'.
-# TODO: review with testers, updated arg specs now require it to be a list from the start
-sap_ha_pacemaker_cluster_host_type: "{{ sap_host_type | default(['hana_scaleup_perf']) }}"
+sap_ha_pacemaker_cluster_host_type: "{{ sap_host_type | d(['hana_scaleup_perf']) }}"
### VIP resource default patterns
sap_ha_pacemaker_cluster_vip_client_interface: ''
@@ -98,11 +97,8 @@ sap_ha_pacemaker_cluster_hacluster_user_password: "{{ ha_cluster_hacluster_passw
# HANA
################################################################################
-sap_ha_pacemaker_cluster_hana_sid: "{{ sap_hana_sid | default('') }}"
-# Keeping 'sap_ha_pacemaker_cluster_hana_instance_number' for the time being for backwards compatibility.
-sap_ha_pacemaker_cluster_hana_instance_nr: >-
- {{ sap_ha_pacemaker_cluster_hana_instance_number
- | default(sap_hana_instance_number) | default('') }}
+sap_ha_pacemaker_cluster_hana_sid: '' # Mandatory System ID in capital letters
+sap_ha_pacemaker_cluster_hana_instance_nr: '' # Mandatory instance number in string format
# Optional parameters to customize SAPHana resources
# AUTOMATED_REGISTER
@@ -113,65 +109,37 @@ sap_ha_pacemaker_cluster_hana_duplicate_primary_timeout: 7200
sap_ha_pacemaker_cluster_hana_prefer_site_takeover: true
# SAP HANA - Resource IDs (names) as convenience parameters.
-sap_ha_pacemaker_cluster_hana_resource_name: >-
- rsc_SAPHana_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-sap_ha_pacemaker_cluster_hana_resource_clone_name: >-
- cln_SAPHana_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-# Master slave clone for SAPHanaSR on SLES <15.6
-sap_ha_pacemaker_cluster_hana_resource_clone_msl_name: >-
- msl_SAPHana_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-# SAPHanaController resource in SAPHanaSR-angi
-sap_ha_pacemaker_cluster_hanacontroller_resource_name: >-
- rsc_SAPHanaCon_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-sap_ha_pacemaker_cluster_hanacontroller_resource_clone_name: >-
- mst_SAPHanaCon_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-
-sap_ha_pacemaker_cluster_hana_topology_resource_name: >-
- rsc_SAPHanaTop_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-sap_ha_pacemaker_cluster_hana_topology_resource_clone_name: >-
- cln_SAPHanaTop_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-
-sap_ha_pacemaker_cluster_hana_filesystem_resource_name: >-
- rsc_SAPHanaFil_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-sap_ha_pacemaker_cluster_hana_filesystem_resource_clone_name: >-
- cln_SAPHanaFil_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
+sap_ha_pacemaker_cluster_hana_resource_name: '' # Default: rsc_SAPHana__HDB
+sap_ha_pacemaker_cluster_hana_resource_clone_name: '' # Default: cln_SAPHana__HDB
+sap_ha_pacemaker_cluster_hana_resource_clone_msl_name: '' # Default: msl_SAPHana__HDB
+sap_ha_pacemaker_cluster_hanacontroller_resource_name: '' # Default: rsc_SAPHanaCon__HDB
+sap_ha_pacemaker_cluster_hanacontroller_resource_clone_name: '' # Default: cln_SAPHanaCon__HDB
+sap_ha_pacemaker_cluster_hana_topology_resource_name: '' # Default: rsc_SAPHanaTop__HDB
+sap_ha_pacemaker_cluster_hana_topology_resource_clone_name: '' # Default: cln_SAPHanaTop__HDB
+sap_ha_pacemaker_cluster_hana_filesystem_resource_name: '' # Default: rsc_SAPHanaFil__HDB
+sap_ha_pacemaker_cluster_hana_filesystem_resource_clone_name: '' # Default: cln_SAPHanaFil__HDB
# SAP HANA - Constraint names
-sap_ha_pacemaker_cluster_hana_order_topology_hana_name: >-
- ord_saphana_saphanatop_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
-
-sap_ha_pacemaker_cluster_hana_colocation_hana_vip_primary_name: >-
- col_saphana_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_primary
-sap_ha_pacemaker_cluster_hana_colocation_hana_vip_secondary_name: >-
- col_saphana_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_readonly
-
-sap_ha_pacemaker_cluster_hana_order_hana_vip_primary_name: >-
- ord_saphana_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_primary
-sap_ha_pacemaker_cluster_hana_order_hana_vip_secondary_name: >-
- ord_saphana_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_readonly
+sap_ha_pacemaker_cluster_hana_order_topology_hana_name: '' # Default: ord_saphana_saphanatop__HDB
+sap_ha_pacemaker_cluster_hana_colocation_hana_vip_primary_name: '' # Default: col_saphana_vip__HDB_primary
+sap_ha_pacemaker_cluster_hana_colocation_hana_vip_secondary_name: '' # Default: col_saphana_vip__HDB_readonly
+sap_ha_pacemaker_cluster_hana_order_hana_vip_primary_name: '' # Default: ord_saphana_vip__HDB_primary
+sap_ha_pacemaker_cluster_hana_order_hana_vip_secondary_name: '' # Default: ord_saphana_vip__HDB_readonly
# Multiple VIP parameters can be defined and will be combined.
# See tasks/include_construct_vip_resources.yml
#
# Mandatory: primary VIP address definition in HANA scale-up clusters
sap_ha_pacemaker_cluster_vip_hana_primary_ip_address: ''
-sap_ha_pacemaker_cluster_vip_hana_primary_resource_name: >-
- rsc_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_primary
-sap_ha_pacemaker_cluster_healthcheck_hana_primary_resource_name: >-
- rsc_vip_health_check_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_primary
+sap_ha_pacemaker_cluster_vip_hana_primary_resource_name: '' # Default: rsc_vip__HDB_primary
+sap_ha_pacemaker_cluster_healthcheck_hana_primary_resource_name: '' # Default: rsc_vip_health_check__HDB_primary
sap_ha_pacemaker_cluster_vip_hana_secondary_ip_address: ''
-sap_ha_pacemaker_cluster_vip_hana_secondary_resource_name: >-
- rsc_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_readonly
-sap_ha_pacemaker_cluster_healthcheck_hana_secondary_resource_name: >-
- rsc_vip_health_check_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_readonly
-
-sap_ha_pacemaker_cluster_healthcheck_hana_primary_id: "{{ sap_ha_pacemaker_cluster_hana_sid + 'prim' }}"
-sap_ha_pacemaker_cluster_healthcheck_hana_secondary_id: "{{ sap_ha_pacemaker_cluster_hana_sid + 'ro' }}"
-sap_ha_pacemaker_cluster_healthcheck_nwas_abap_ascs_id: "{{ sap_ha_pacemaker_cluster_nwas_abap_sid + 'ascs' }}"
-sap_ha_pacemaker_cluster_healthcheck_nwas_abap_ers_id: "{{ sap_ha_pacemaker_cluster_nwas_abap_sid + 'ers' }}"
-sap_ha_pacemaker_cluster_healthcheck_nwas_abap_pas_id: "{{ sap_ha_pacemaker_cluster_nwas_abap_sid + 'pas' }}"
-sap_ha_pacemaker_cluster_healthcheck_nwas_abap_aas_id: "{{ sap_ha_pacemaker_cluster_nwas_abap_sid + 'aas' }}"
+sap_ha_pacemaker_cluster_vip_hana_secondary_resource_name: '' # Default: rsc_vip__HDB_readonly
+sap_ha_pacemaker_cluster_healthcheck_hana_secondary_resource_name: '' # Default: rsc_vip_health_check__HDB_readonly
+
+sap_ha_pacemaker_cluster_healthcheck_hana_primary_id: '' # Default: prim
+sap_ha_pacemaker_cluster_healthcheck_hana_secondary_id: '' # Default: ro
# Optional dictionary with custom list of HANA Hooks for replication
sap_ha_pacemaker_cluster_hana_hooks: []
@@ -181,8 +149,7 @@ sap_ha_pacemaker_cluster_hana_hook_tkover: false
sap_ha_pacemaker_cluster_hana_hook_chksrv: false
# SAP Hana global.ini path calculated from SID
-sap_ha_pacemaker_cluster_hana_global_ini_path: "/usr/sap/{{
- sap_ha_pacemaker_cluster_hana_sid | upper }}/SYS/global/hdb/custom/config/global.ini"
+sap_ha_pacemaker_cluster_hana_global_ini_path: '' # Default: /usr/sap//SYS/global/hdb/custom/config/global.ini
# Disable auto-detection of SAPHanaSR-angi package and use Classic
sap_ha_pacemaker_cluster_saphanasr_angi_detection: true
@@ -193,30 +160,30 @@ sap_ha_pacemaker_cluster_saphanasr_angi_detection: true
# Default will be ENSA2. To configure HA resources for ENSA1,
# set this parameter to 'true'.
-sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_ensa1: false
+sap_ha_pacemaker_cluster_nwas_cs_ensa1: false
# Enable ENSA2 simple mount configuration
-sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_simple_mount: true
+sap_ha_pacemaker_cluster_nwas_cs_ers_simple_mount: true
# Enable/Disable sap_cluster_connector.
# Ref.: https://access.redhat.com/solutions/3606101
sap_ha_pacemaker_cluster_enable_cluster_connector: true
-# Inherit common synonym NetWeaver parameters when defined.
-sap_ha_pacemaker_cluster_nwas_abap_sid: "{{ sap_swpm_sid | default('') }}"
-sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr: "{{ sap_swpm_ascs_instance_nr | default('') }}"
-sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr: "{{ sap_swpm_ers_instance_nr | default('') }}"
-sap_ha_pacemaker_cluster_nwas_abap_pas_instance_nr: "{{ sap_swpm_pas_instance_nr | default('') }}"
-sap_ha_pacemaker_cluster_nwas_abap_aas_instance_nr: "{{ sap_swpm_aas_instance_nr | default('') }}"
-# Prepare in case JAVA SCS/ERS will be included later.
-# sap_ha_pacemaker_cluster_nwas_java_scs_instance_nr: "{{ sap_swpm_java_scs_instance_nr | default('') }}"
-# sap_ha_pacemaker_cluster_nwas_java_ers_instance_nr: "{{ sap_swpm_java_ers_instance_nr | default('') }}"
+# SAP Netweaver instance details
+sap_ha_pacemaker_cluster_nwas_sid: '' # Mandatory System ID in capital letters for Netweaver scenarios
+sap_ha_pacemaker_cluster_nwas_ascs_instance_nr: '' # Mandatory instance number for ASCS/ERS
+sap_ha_pacemaker_cluster_nwas_scs_instance_nr: '' # Mandatory instance number for SCS/ERS
+sap_ha_pacemaker_cluster_nwas_ers_instance_nr: '' # Mandatory instance number for ASCS/ERS and SCS/ERS
+# TODO: Differentiate between ABAP and JAVA (Dxx vs Jxx) once supported
+sap_ha_pacemaker_cluster_nwas_abap_pas_instance_nr: '' # Mandatory instance number for PAS/AAS
+sap_ha_pacemaker_cluster_nwas_abap_aas_instance_nr: '' # Mandatory instance number for PAS/AAS
+
# Definitions for filesystems resources. Currently limited to NFS filesystems.
-sap_ha_pacemaker_cluster_storage_definition: "{{ sap_storage_setup_definition | default([]) }}"
-sap_ha_pacemaker_cluster_storage_nfs_filesytem_type: nfs
+sap_ha_pacemaker_cluster_storage_definition: "{{ sap_storage_setup_definition | d([]) }}"
+sap_ha_pacemaker_cluster_storage_nfs_filesystem_type: nfs
sap_ha_pacemaker_cluster_storage_nfs_mount_options: 'defaults'
-sap_ha_pacemaker_cluster_storage_nfs_server: "{{ sap_storage_nfs_server | default('') }}"
+sap_ha_pacemaker_cluster_storage_nfs_server: "{{ sap_storage_nfs_server | d('') }}"
# NFS filesystem resource requirement
# Not adding to argument_specs because this should not be changed anyway.
@@ -226,148 +193,124 @@ sap_ha_pacemaker_cluster_resource_filesystem_force_unmount: safe
# Multiple VIP parameters can be defined and will be combined.
# See tasks/include_construct_vip_resources.yml
-sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_ip_address: ''
-sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_name: >-
- rsc_vip_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
-sap_ha_pacemaker_cluster_healthcheck_nwas_abap_ascs_resource_name: >-
- rsc_vip_health_check_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
-
-sap_ha_pacemaker_cluster_vip_nwas_abap_ers_ip_address: ''
-sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_name: >-
- rsc_vip_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr }}
-sap_ha_pacemaker_cluster_healthcheck_nwas_abap_ers_resource_name: >-
- rsc_vip_health_check_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr }}
+sap_ha_pacemaker_cluster_vip_nwas_ascs_ip_address: ''
+sap_ha_pacemaker_cluster_vip_nwas_ascs_resource_name: '' # Default rsc_vip__ASCS
+sap_ha_pacemaker_cluster_healthcheck_nwas_ascs_resource_name: '' # Default: rsc_vip_health_check__ASCS
+
+sap_ha_pacemaker_cluster_vip_nwas_scs_ip_address: ''
+sap_ha_pacemaker_cluster_vip_nwas_scs_resource_name: '' # Default: rsc_vip__SCS
+sap_ha_pacemaker_cluster_healthcheck_nwas_scs_resource_name: '' # Default: rsc_vip_health_check__SCS
+
+sap_ha_pacemaker_cluster_vip_nwas_ers_ip_address: ''
+sap_ha_pacemaker_cluster_vip_nwas_ers_resource_name: '' # Default: rsc_vip__ERS
+sap_ha_pacemaker_cluster_healthcheck_nwas_ers_resource_name: '' # Default: rsc_vip_health_check__ERS
sap_ha_pacemaker_cluster_vip_nwas_abap_pas_ip_address: ''
-sap_ha_pacemaker_cluster_vip_nwas_abap_pas_resource_name: >-
- rsc_vip_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_PAS{{ sap_ha_pacemaker_cluster_nwas_abap_pas_instance_nr }}
-sap_ha_pacemaker_cluster_healthcheck_nwas_abap_pas_resource_name: >-
- rsc_vip_health_check_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_PAS{{ sap_ha_pacemaker_cluster_nwas_abap_pas_instance_nr }}
+sap_ha_pacemaker_cluster_vip_nwas_abap_pas_resource_name: '' # Default: rsc_vip__PAS
+sap_ha_pacemaker_cluster_healthcheck_nwas_abap_pas_resource_name: '' # Default: rsc_vip_health_check__PAS
sap_ha_pacemaker_cluster_vip_nwas_abap_aas_ip_address: ''
-sap_ha_pacemaker_cluster_vip_nwas_abap_aas_resource_name: >-
- rsc_vip_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_AAS{{ sap_ha_pacemaker_cluster_nwas_abap_aas_instance_nr }}
-sap_ha_pacemaker_cluster_healthcheck_nwas_abap_aas_resource_name: >-
- rsc_vip_health_check_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_AAS{{ sap_ha_pacemaker_cluster_nwas_abap_aas_instance_nr }}
+sap_ha_pacemaker_cluster_vip_nwas_abap_aas_resource_name: '' # Default: rsc_vip__AAS
+sap_ha_pacemaker_cluster_healthcheck_nwas_abap_aas_resource_name: '' # Default: rsc_vip_health_check__AAS
+sap_ha_pacemaker_cluster_healthcheck_nwas_ascs_id: ''
+sap_ha_pacemaker_cluster_healthcheck_nwas_scs_id: ''
+sap_ha_pacemaker_cluster_healthcheck_nwas_ers_id: ''
+sap_ha_pacemaker_cluster_healthcheck_nwas_pas_id: ''
+sap_ha_pacemaker_cluster_healthcheck_nwas_aas_id: ''
# SAP NetWeaver common - Resource IDs (names) as convenience parameters
# for the following filesystems:
# - /sapmnt
# - /usr/sap/trans
# - /usr/sap/<>/SYS
-sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_name: >-
- rsc_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_sapmnt
-sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_clone_name: >-
- cln_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_sapmnt
+sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_name: '' # Default: rsc_fs__sapmnt
+sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_clone_name: '' # Default: cln_fs__sapmnt
-sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_name: >-
- rsc_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_trans
-sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_clone_name: >-
- cln_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_trans
+sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_name: '' # Default: rsc_fs__trans
+sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_clone_name: '' # Default: cln_fs__trans
-sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_name: >-
- rsc_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_sys
-sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_clone_name: >-
- cln_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_sys
+sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_name: '' # Default: rsc_fs__sys
+sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_clone_name: '' # Default: cln_fs__sys
# The shared filesystems are not required to be configured in the cluster.
# By default it is assumed that they are mounted by the system and available on all cluster nodes.
# Set this parameter to "true" to configure the 3 shared filesystems as part of the cluster.
sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed: false
+
################################################################################
-# ASCS resource defaults
+# ASCS and SCS shared resource defaults
################################################################################
-# Name of the instance profile - mandatory to be user-defined
-sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_instance_name: ''
-# Full path with instance profile name - mandatory to be user-defined
-sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_start_profile_string: ''
+# TODO: Remove backwards compatibility to nwas_abap_ascs
+sap_ha_pacemaker_cluster_nwas_cs_sapinstance_automatic_recover_bool:
+ "{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_automatic_recover_bool | d(false) }}"
+sap_ha_pacemaker_cluster_nwas_cs_sapinstance_resource_stickiness:
+ "{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_stickiness | d(5000) }}"
+sap_ha_pacemaker_cluster_nwas_cs_sapinstance_ensa1_migration_threshold:
+ "{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_migration_threshold | d(1) }}"
+sap_ha_pacemaker_cluster_nwas_cs_sapinstance_ensa1_failure_timeout:
+ "{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_failure_timeout | d(60) }}"
+sap_ha_pacemaker_cluster_nwas_cs_group_stickiness:
+ "{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_group_stickiness | d(3000) }}"
-# SAP NetWeaver ABAP ASCS/ERS - Resource IDs (names) as convenience parameters.
-# - /usr/sap/<>/ASCS<>
-# - /usr/sap/<>/ERS<>
-sap_ha_pacemaker_cluster_nwas_abap_ascs_filesystem_resource_name: >-
- rsc_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
-sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_name: >-
- rsc_SAPInstance_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
-sap_ha_pacemaker_cluster_nwas_abap_ascs_sapstartsrv_resource_name: >-
- rsc_SAPStartSrv_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
+################################################################################
+# ASCS resource defaults
+################################################################################
-sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_group_name: >-
- grp_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
+sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_instance_name: '' # Mandatory name of instance profile
+sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_start_profile_string: '' # Full path of instance profile
-sap_ha_pacemaker_cluster_nwas_colocation_ascs_no_ers_name: >-
- col_ascs_separate_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}
+sap_ha_pacemaker_cluster_nwas_ascs_filesystem_resource_name: '' # Default: rsc_fs__ASCS
+sap_ha_pacemaker_cluster_nwas_ascs_sapinstance_resource_name: '' # Default: rsc_SAPInstance__ASCS
+sap_ha_pacemaker_cluster_nwas_ascs_sapstartsrv_resource_name: '' # Default: rsc_SAPStartSrv__ASCS
-sap_ha_pacemaker_cluster_nwas_order_ascs_first_name: >-
- ord_ascs_first_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}
+sap_ha_pacemaker_cluster_vip_nwas_ascs_resource_group_name: '' # Default: grp__ASCS
-sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_automatic_recover_bool: false
-sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_stickiness: 5000
-sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_migration_threshold: 1
-sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_failure_timeout: 60
+sap_ha_pacemaker_cluster_nwas_colocation_ascs_no_ers_name: '' # Default: col_ascs_separate_
+sap_ha_pacemaker_cluster_nwas_order_ascs_first_name: '' # Default: ord_ascs_first_
-# Stickiness of the ASCS group
-sap_ha_pacemaker_cluster_nwas_abap_ascs_group_stickiness: 3000
################################################################################
-# ERS resource defaults
+# SCS resource defaults
################################################################################
-# Name of the instance profile - mandatory to be user-defined
-sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_instance_name: ''
+sap_ha_pacemaker_cluster_nwas_scs_sapinstance_instance_name: '' # Mandatory name of instance profile
+sap_ha_pacemaker_cluster_nwas_scs_sapinstance_start_profile_string: '' # Full path of instance profile
-# Full path with instance profile name - mandatory to be user-defined
-sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_start_profile_string: ''
+sap_ha_pacemaker_cluster_nwas_scs_filesystem_resource_name: '' # Default: rsc_fs__SCS
+sap_ha_pacemaker_cluster_nwas_scs_sapinstance_resource_name: '' # Default: rsc_SAPInstance_