Puppet Class: pacemaker::drbd

Inherits:
drbd::base
Defined in:
manifests/drbd.pp

Overview

Class: pacemaker::drbd

Helper which includes the drbd::base class, but with service management disabled. This is useful if DRBD needs to be managed by heartbeat, but you still want to benefit from the facilities provided in the drbd module.

Requires:

  • drbd’s puppet module

Example usage:

include pacemaker::drbd

lint:ignore:inherits_across_namespaces



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'manifests/drbd.pp', line 14

class pacemaker::drbd inherits drbd::base {
# lint:endignore

  Service['drbd'] {
    ensure => undef,
    enable => false,
  }

  case $::operatingsystem {

    'RedHat','CentOS': {
      case $::operatingsystemmajrelease {
        '4','5': { }
        default: {
          selinux::module { 'hadrbd':
            content => file('pacemaker/selinux/hadrbd.te'),
            require => Package['corosync'],
          }
        }
      }
    }

    default: { }

  }

}