Puppet Class: tripleo::profile::pacemaker::compute_instanceha

Defined in:
manifests/profile/pacemaker/compute_instanceha.pp

Overview

Class: tripleo::profile::pacemaker::compute_instanceha

Configures Compute nodes for Instance HA

Parameters:

step

(Optional) The current step in deployment. See tripleo-heat-templates for more details. Defaults to Integer(lookup(‘step’))

pcs_tries

(Optional) The number of times pcs commands should be retried. Defaults to lookup(‘pcs_tries’, undef, undef, 20)

enable_instanceha

(Optional) Boolean driving the Instance HA controlplane configuration Defaults to false

Parameters:

  • step (Any) (defaults to: Integer(lookup('step')))
  • pcs_tries (Any) (defaults to: lookup('pcs_tries', undef, undef, 20))
  • enable_instanceha (Any) (defaults to: lookup('tripleo::instanceha', undef, undef, false))


20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/profile/pacemaker/compute_instanceha.pp', line 20

class tripleo::profile::pacemaker::compute_instanceha (
  $step              = Integer(lookup('step')),
  $pcs_tries         = lookup('pcs_tries', undef, undef, 20),
  $enable_instanceha = lookup('tripleo::instanceha', undef, undef, false),
) {
  if $step >= 2 and $enable_instanceha {
    pacemaker::property { 'compute-instanceha-role-node-property':
      property => 'compute-instanceha-role',
      value    => true,
      tries    => $pcs_tries,
      node     => $::hostname,
    }
  }
}