summaryrefslogtreecommitdiffstats
path: root/scripts/mailto/main.yml
blob: bcf188e4a28a5c48cdb3774c6421e9dcf839b68b (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
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}}