summaryrefslogtreecommitdiffstats
path: root/scripts/db2/main.yml
blob: 95e74614ec9db54257ccc562cbf4b3047e7d5007 (plain)
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
version: 2.2
category: Database
shortdesc: IBM DB2 Database
longdesc: >-
  Configure an IBM DB2 database resource, along with a Virtual IP and a file system mount point.

  Note that the file system resource will be stopped initially, in case you need to run mkfs.

include:
  - agent: ocf:heartbeat:db2
    parameters:
      - name: id
        required: true
        shortdesc: DB2 Resource ID
        longdesc: Unique ID for the database resource in the cluster.
        type: string
        value: db2-database
      - name: instance
        required: true
        type: string
        value: db2inst1
  - script: virtual-ip
    shortdesc: The IP address configured here will start before the DB2 instance.
    parameters:
      - name: id
        value: db2-virtual-ip
  - script: filesystem
    shortdesc: The file system configured here will be mounted before the DB2 instance.
    parameters:
      - name: id
        value: db2-fs
      - name: fstype
        value: xfs
      - name: directory
        value: "/db2/db2inst1"
actions:
  - include: virtual-ip
  - include: filesystem
  - include: db2
  - cib: |
      group g-{{id}}
        {{virtual-ip:id}}
        {{filesystem:id}}
        {{id}}
        meta target-role=Stopped