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/db2 | |
parent | Initial commit. (diff) | |
download | crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.tar.xz crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.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/db2')
-rw-r--r-- | scripts/db2/main.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/db2/main.yml b/scripts/db2/main.yml new file mode 100644 index 0000000..95e7461 --- /dev/null +++ b/scripts/db2/main.yml @@ -0,0 +1,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 |