ondrejhome.ha_cluster.pcs_quorum_qdevice (1.0.2) — module

wrapper module for 'pcs quorum setup/destroy/change qdevice setting'

| "added in version" 2.10 of ondrejhome.ha_cluster"

Authors: Olivier Pouilly (@OliPou)

preview | supported by community

Install collection

Install with ansible-galaxy collection install ondrejhome.ha_cluster:==1.0.2


Add to requirements.yml

  collections:
    - name: ondrejhome.ha_cluster
      version: 1.0.2

Description

module for setup/destroy/change qdevice setting 'pcs' utility

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Setup qdevice with default algorithm (ffsplit)
  pcs_quorum_qdevice:
    qdevice: qdevice-name
  run_once: True
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Setup qdevice with lms algorithm
  pcs_quorum_qdevice:
    qdevice: qdevice-name
    algorithm: lms
  run_once: True
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete qdevice
  pcs_quorum_qdevice:
    state: absent
  run_once: True
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Setup or modify qdevice to use lms algorith
  pcs_quorum_qdevice:
    qdevice: qdevice-name
    algorithm: lms
    allowed_qdevice_changes: update
  run_once: True

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - '''present'' - ensure that the qdevice exists'
    - '''absent'' - ensure qdevice doesn''t exist'
    required: false
    type: str

qdevice:
    description:
    - qdevice name (hostname or IP address)
    required: false
    type: str

algorithm:
    choices:
    - ffsplit
    - lms
    default: ffsplit
    description:
    - algorithm use by the cluster
    required: false
    type: str

allowed_qdevice_changes:
    choices:
    - none
    - update
    default: none
    description:
    - '''none'' - existing qdevice and algorithm must match'
    - '''update'' - allow qdevice and/or algorithm update'
    required: false
    type: str