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/drbd | |
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/drbd')
-rw-r--r-- | scripts/drbd/main.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/scripts/drbd/main.yml b/scripts/drbd/main.yml new file mode 100644 index 0000000..29ba472 --- /dev/null +++ b/scripts/drbd/main.yml @@ -0,0 +1,41 @@ +version: 2.2 +category: File System +shortdesc: DRBD Block Device +longdesc: >- + Distributed Replicated Block Device. Configure a DRBD cluster resource. + + Also creates a multistate resource managing the state of DRBD. + + Does not create or modify the referenced DRBD configuration. + +parameters: + - name: id + shortdesc: DRBD Cluster Resource ID + required: true + value: drbd-data + type: resource + - name: drbd_resource + shortdesc: DRBD Resource Name + required: true + value: drbd0 + type: string + - name: drbdconf + value: "/etc/drbd.conf" + - name: install + type: boolean + shortdesc: Install packages for DRBD + value: false + +actions: + - install: drbd drbd-kmp-default + shortdesc: Install packages for DRBD + when: install + - cib: | + primitive {{id}} ocf:linbit:drbd + params + drbd_resource="{{drbd_resource}}" + drbdconf="{{drbdconf}}" + op monitor interval="29s" role="Master" + op monitor interval="31s" role="Slave" + ms ms-{{id}} {{id}} + meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true |