Resource Type: pacemaker_nodes

Defined in:
lib/puppet/type/pacemaker_nodes.rb
Providers:
xml
noop

Overview

Add and remove cluster nodes using the “corosync-cmapctl” tool without restart of the Pacemaker and Corosync services.

Parameters

  • debug (defaults to: false)

    Don’t actually make changes

    Default: false

    Supported values:
    • true
    • false
    • yes
    • no
  • name (namevar)
  • nodes

    Nodes data structure:

    ```
    {
      '1' => {
        name: 'node1',
        id: '1',
        ring0: '192.168.0.1',
        ring1: '172.16.0.1',
      },
      '2' => {
        name: 'node2',
        id: '2',
        ring0: '192.168.0.2',
        ring1: '172.16.0.2',
      },
      '3' => {
        name: 'node3',
        id: '3',
        ring0: '192.168.0.3',
        ring1: '172.16.0.3',
      }
    }
    ```
    

    This structure may be generated by the “corosync_nodes” function with “raw” output type from the several input formats.

  • provider

    The specific backend to use for this ‘pacemaker_nodes` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • remove_pacemaker_nodes (defaults to: true)