Puppet Class: pacemaker::new::setup

Inherits:
::pacemaker::new::params
Defined in:
manifests/new/setup.pp

Overview

Class: pacemaker::new::setup

Sets ups the cluster configuration either using the “pcsd” service or by creating the configuration file directy.

Parameters:

  • pcsd_mode (Any) (defaults to: $::pacemaker::new::params::pcsd_mode)
  • cluster_nodes (Any) (defaults to: $::pacemaker::new::params::cluster_nodes)
  • cluster_rrp_nodes (Any) (defaults to: $::pacemaker::new::params::cluster_rrp_nodes)
  • cluster_name (Any) (defaults to: $::pacemaker::new::params::cluster_name)
  • cluster_auth_key (Any) (defaults to: $::pacemaker::new::params::cluster_auth_key)
  • cluster_auth_enabled (Any) (defaults to: $::pacemaker::new::params::cluster_auth_enabled)
  • cluster_setup (Any) (defaults to: $::pacemaker::new::params::cluster_setup)
  • cluster_options (Any) (defaults to: $::pacemaker::new::params::cluster_options)
  • cluster_user (Any) (defaults to: $::pacemaker::new::params::cluster_user)
  • cluster_group (Any) (defaults to: $::pacemaker::new::params::cluster_group)
  • cluster_password (Any) (defaults to: $::pacemaker::new::params::cluster_password)
  • pcs_bin_path (Any) (defaults to: $::pacemaker::new::params::pcs_bin_path)
  • cluster_config_path (Any) (defaults to: $::pacemaker::new::params::cluster_config_path)
  • cluster_interfaces (Any) (defaults to: $::pacemaker::new::params::cluster_interfaces)
  • cluster_log_subsys (Any) (defaults to: $::pacemaker::new::params::cluster_log_subsys)
  • plugin_version (Any) (defaults to: $::pacemaker::new::params::plugin_version)
  • log_file_path (Any) (defaults to: $::pacemaker::new::params::log_file_path)


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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'manifests/new/setup.pp', line 7

class pacemaker::new::setup (
  $pcsd_mode            = $::pacemaker::new::params::pcsd_mode,
  $cluster_nodes        = $::pacemaker::new::params::cluster_nodes,
  $cluster_rrp_nodes    = $::pacemaker::new::params::cluster_rrp_nodes,
  $cluster_name         = $::pacemaker::new::params::cluster_name,
  $cluster_auth_key     = $::pacemaker::new::params::cluster_auth_key,
  $cluster_auth_enabled = $::pacemaker::new::params::cluster_auth_enabled,
  $cluster_setup        = $::pacemaker::new::params::cluster_setup,
  $cluster_options      = $::pacemaker::new::params::cluster_options,
  $cluster_user         = $::pacemaker::new::params::cluster_user,
  $cluster_group        = $::pacemaker::new::params::cluster_group,
  $cluster_password     = $::pacemaker::new::params::cluster_password,
  $pcs_bin_path         = $::pacemaker::new::params::pcs_bin_path,
  $cluster_config_path  = $::pacemaker::new::params::cluster_config_path,
  $cluster_interfaces   = $::pacemaker::new::params::cluster_interfaces,
  $cluster_log_subsys   = $::pacemaker::new::params::cluster_log_subsys,
  $plugin_version       = $::pacemaker::new::params::plugin_version,
  $log_file_path        = $::pacemaker::new::params::log_file_path,
) inherits ::pacemaker::new::params {
  if $::os['family'] == 'Debian' {
    class { '::pacemaker::new::setup::debian' :
      plugin_version => $plugin_version,
    }
    pacemaker::contain { 'pacemaker::new::setup::debian': }
  }

  class { '::pacemaker::new::setup::auth_key' :
    cluster_auth_enabled => $cluster_auth_enabled,
    cluster_auth_key     => $cluster_auth_key,
    cluster_user         => $cluster_user,
    cluster_group        => $cluster_group,
  }
  pacemaker::contain { 'pacemaker::new::setup::auth_key': }

  if $pcsd_mode {
    class { '::pacemaker::new::setup::pcsd' :
      cluster_nodes     => $cluster_nodes,
      cluster_rrp_nodes => $cluster_rrp_nodes,
      cluster_name      => $cluster_name,
      cluster_setup     => $cluster_setup,
      cluster_options   => $cluster_options,
      cluster_user      => $cluster_user,
      cluster_group     => $cluster_group,
      cluster_password  => $cluster_password,
      pcs_bin_path      => $pcs_bin_path,
    }
    pacemaker::contain { 'pacemaker::new::setup::pcsd': }
  } else {
    class { '::pacemaker::new::setup::config' :
      cluster_nodes        => $cluster_nodes,
      cluster_rrp_nodes    => $cluster_rrp_nodes,
      cluster_name         => $cluster_name,
      cluster_auth_enabled => $cluster_auth_enabled,
      cluster_setup        => $cluster_setup,
      cluster_options      => $cluster_options,
      cluster_config_path  => $cluster_config_path,
      cluster_interfaces   => $cluster_interfaces,
      cluster_log_subsys   => $cluster_log_subsys,
      log_file_path        => $log_file_path,
    }
    pacemaker::contain { 'pacemaker::new::setup::config': }
  }
}