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/mailto | |
parent | Initial commit. (diff) | |
download | crmsh-upstream.tar.xz crmsh-upstream.zip |
Adding upstream version 4.6.0.upstream/4.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | scripts/mailto/main.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/mailto/main.yml b/scripts/mailto/main.yml new file mode 100644 index 0000000..bcf188e --- /dev/null +++ b/scripts/mailto/main.yml @@ -0,0 +1,29 @@ +version: 2.2 +shortdesc: E-Mail +longdesc: | + Notifies recipient by e-mail in the event of a resource takeover. +category: Basic +include: + - agent: ocf:heartbeat:MailTo + name: mailto + parameters: + - name: id + type: resource + required: true + - name: email + type: email + required: true + - name: subject + type: string + required: false + ops: | + op start timeout="10" + op stop timeout="10" + op monitor interval="10" timeout="10" +actions: + - install: + - mailx + shortdesc: Ensure mail package is installed + - include: mailto + - cib: | + clone c-{{id}} {{id}} |