From d835b2cae8abc71958b69362162e6a70c3d7ef63 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 08:48:59 +0200 Subject: Adding upstream version 4.6.0. Signed-off-by: Daniel Baumann --- scripts/db2/main.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 scripts/db2/main.yml (limited to 'scripts/db2/main.yml') 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 -- cgit v1.2.3