File: main.yml

package info (click to toggle)
crmsh 5.0.0~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,792 kB
  • sloc: python: 50,329; sh: 1,207; makefile: 254; xml: 243; exp: 234; awk: 22
file content (37 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
# Copyright (C) 2009 Dejan Muhamedagic
# Copyright (C) 2015 Kristoffer Gronlund
#
# License: GNU General Public License (GPL)
version: 2.2
category: Stonith
shortdesc: "SBD, Shared storage based fencing"
longdesc: |
  Create a SBD STONITH resource. SBD must be configured to use
  a particular shared storage device using /etc/default/sbd.

  This wizard can optionally create and configure a SBD device.
  A shared device must be available and visible on all nodes.

  For more information, see http://www.linux-ha.org/wiki/SBD_Fencing
  or the sbd(8) manual page.

parameters:
  - name: id
    shortdesc: Resource ID (Name)
    value: sbd-fencing
    example: sbd-fencing
    required: true
    type: resource

include:
  - script: sbd-device
    required: false

actions:
  - include: sbd-device

  - cib: |
      primitive {{id}} stonith:fence_sbd
        pcmk_delay_max=30s

      property stonith-enabled=true