diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
commit | d835b2cae8abc71958b69362162e6a70c3d7ef63 (patch) | |
tree | 81052e3d2ce3e1bcda085f73d925e9d6257dec15 /scripts/sapinstance | |
parent | Initial commit. (diff) | |
download | crmsh-upstream.tar.xz crmsh-upstream.zip |
Adding upstream version 4.6.0.upstream/4.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/sapinstance')
-rw-r--r-- | scripts/sapinstance/main.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/scripts/sapinstance/main.yml b/scripts/sapinstance/main.yml new file mode 100644 index 0000000..b6da1b5 --- /dev/null +++ b/scripts/sapinstance/main.yml @@ -0,0 +1,48 @@ +version: 2.2 +category: Script +shortdesc: SAP Instance +longdesc: Create a single SAP Instance. + +parameters: + - name: id + required: true + shortdesc: Resource ID + longdesc: Unique ID for this SAP instance resource in the cluster. + type: resource + value: sapinstance + - name: InstanceName + required: true + shortdesc: Instance Name + longdesc: The name of the SAP instance. + type: string + value: sapinstance + - name: START_PROFILE + required: true + shortdesc: Start Profile + longdesc: This defines the path and the file name of the SAP start profile of this particular instance. + type: string + - name: AUTOMATIC_RECOVER + required: true + shortdesc: Automatic Recover + longdesc: >- + The SAPInstance resource agent tries to recover a failed start + attempt automaticaly one time. This is done by killing runing + instance processes, removing the kill.sap file and executing + cleanipc. Sometimes a crashed SAP instance leaves some + processes and/or shared memory segments behind. Setting this + option to true will try to remove those leftovers during a + start operation. That is to reduce manual work for the + administrator. + type: boolean + value: true + +actions: + - cib: | + primitive {{id}} ocf:heartbeat:SAPInstance + params + InstanceName="{{InstanceName}}" + AUTOMATIC_RECOVER="{{AUTOMATIC_RECOVER}}" + START_PROFILE="{{START_PROFILE}}" + op monitor interval="180" timeout="60" start-delay="240" + op start timeout="240" + op stop timeout="240" on-fail="block" |