From ae92bb790bc458371ce56ee17a5d2ab83236b509 Mon Sep 17 00:00:00 2001
From: Rich Megginson Contents
id="toc-ha_cluster_fence_agent_packages">ha_cluster_fence_agent_packages
ha_cluster_extra_packages
ha_cluster_use_latest_packages
ha_cluster_hacluster_password
Defined in
href="#ha_cluster_fence_agent_packages">
ha_cluster_fence_agent_packages
ha_cluster_use_latest_packages
boolean, default: false
If set to true
, all packages will be installed with
+latest version. If set to false
, existing packages will not
+be updated.
ha_cluster_hacluster_password
string, no default - must be specified
Password of the hacluster
user. This user has full
@@ -1958,58 +1967,59 @@
- hosts: node1 node2
vars:
my_sbd_devices:
- # This variable is not used by the role.
- # It's purpose is to define SBD devices once so they don't need
+ # This variable is not used by the role directly.
+ # Its purpose is to define SBD devices once so they don't need
# to be repeated several times in the role variables.
- - /dev/disk/by-id/000001
- - /dev/disk/by-id/000002
- - /dev/disk/by-id/000003
- ha_cluster_cluster_name: my-new-cluster
- ha_cluster_hacluster_password: password
- ha_cluster_sbd_enabled: true
- ha_cluster_sbd_options:
- - name: delay-start
- value: 'no'
- - name: startmode
- value: always
- - name: timeout-action
- value: 'flush,reboot'
- - name: watchdog-timeout
- value: 30
- ha_cluster_node_options:
- - node_name: node1
- sbd_watchdog_modules:
- - iTCO_wdt
- sbd_watchdog_modules_blocklist:
- - ipmi_watchdog
- sbd_watchdog: /dev/watchdog1
- sbd_devices: "{{ my_sbd_devices }}"
- - node_name: node2
- sbd_watchdog_modules:
- - iTCO_wdt
- sbd_watchdog_modules_blocklist:
- - ipmi_watchdog
- sbd_watchdog: /dev/watchdog1
- sbd_devices: "{{ my_sbd_devices }}"
- # Best practice for setting SBD timeouts:
- # watchdog-timeout * 2 = msgwait-timeout (set automatically)
- # msgwait-timeout * 1.2 = stonith-timeout
- ha_cluster_cluster_properties:
- - attrs:
- - name: stonith-timeout
- value: 72
- ha_cluster_resource_primitives:
- - id: fence_sbd
- agent: 'stonith:fence_sbd'
- instance_attrs:
- - attrs:
- - name: devices
- value: "{{ my_sbd_devices | join(',') }}"
- - name: pcmk_delay_base
- value: 30
-
- roles:
- - linux-system-roles.ha_cluster
+ # Instead, variables directly used by the role refer to this variable.
+ - /dev/disk/by-id/000001
+ - /dev/disk/by-id/000002
+ - /dev/disk/by-id/000003
+ ha_cluster_cluster_name: my-new-cluster
+ ha_cluster_hacluster_password: password
+ ha_cluster_sbd_enabled: true
+ ha_cluster_sbd_options:
+ - name: delay-start
+ value: 'no'
+ - name: startmode
+ value: always
+ - name: timeout-action
+ value: 'flush,reboot'
+ - name: watchdog-timeout
+ value: 30
+ ha_cluster_node_options:
+ - node_name: node1
+ sbd_watchdog_modules:
+ - iTCO_wdt
+ sbd_watchdog_modules_blocklist:
+ - ipmi_watchdog
+ sbd_watchdog: /dev/watchdog1
+ sbd_devices: "{{ my_sbd_devices }}"
+ - node_name: node2
+ sbd_watchdog_modules:
+ - iTCO_wdt
+ sbd_watchdog_modules_blocklist:
+ - ipmi_watchdog
+ sbd_watchdog: /dev/watchdog1
+ sbd_devices: "{{ my_sbd_devices }}"
+ # Best practice for setting SBD timeouts:
+ # watchdog-timeout * 2 = msgwait-timeout (set automatically)
+ # msgwait-timeout * 1.2 = stonith-timeout
+ ha_cluster_cluster_properties:
+ - attrs:
+ - name: stonith-timeout
+ value: 72
+ ha_cluster_resource_primitives:
+ - id: fence_sbd
+ agent: 'stonith:fence_sbd'
+ instance_attrs:
+ - attrs:
+ - name: devices
+ value: "{{ my_sbd_devices | join(',') }}"
+ - name: pcmk_delay_base
+ value: 30
+
+ roles:
+ - linux-system-roles.ha_cluster
ha_cluster
variableThe same result can be achieved by specifying node-specific options diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b00b448..2ba8720e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,21 @@ Changelog ========= +[1.20.0] - 2024-10-30 +-------------------- + +### New Features + +- feat: crmsh 4.6.0 support and stonith-enabled workflow update (#232) + +### Other Changes + +- ci: Add tags to TF workflow, allow more [citest bad] formats (#229) +- docs: improve comments in SBD examples (#230) +- ci: ansible-test action now requires ansible-core version (#233) +- ci: add YAML header to github action workflow files (#234) +- refactor: Use vars/RedHat_N.yml symlink for CentOS, Rocky, Alma wherever possible (#236) + [1.19.2] - 2024-08-21 --------------------