version: 2.2
category: Script
shortdesc: SAP Database Instance
longdesc: Create a single SAP Database Instance.

parameters:
  - name: id
    required: true
    shortdesc: Resource ID
    longdesc: Unique ID for this SAP instance resource in the cluster.
    type: resource
    value: rsc_sabdb_NA0
  - name: SID
    required: true
    shortdesc: Database SID
    longdesc: The SID for the database.
    type: string
    value: NA0
  - name: DBTYPE
    required: true
    shortdesc: Database Type
    longdesc: The type of database.
    value: ADA
    type: string

actions:
  - cib: |
      primitive {{id}} ocf:heartbeat:SAPDatabase
        params SID="{{SID}}" DBTYPE="{{DBTYPE}}"
        op monitor interval="120" timeout="60" start_delay="180"
        op start timeout="1800"
        op stop timeout="1800"
