diff --git a/docs/index.html b/docs/index.html index 1cdf7104..2edecbc1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -814,45 +814,47 @@
ha_cluster_sbd_options
This variable defines various settings which vary from cluster node to cluster node.
Note: Use an inventory or playbook hosts to specify @@ -878,7 +880,9 @@
ha_cluster_sbd_options
sbd_watchdog
(optional) - Watchdog device to be used by
SBD. Defaults to /dev/watchdog
if not set.sbd_devices
(optional) - Devices to use for exchanging
-SBD messages and for monitoring. Defaults to empty list if not set./dev/disk/by-id/
).
attributes
(optional) - List of sets of Pacemaker node
attributes for the node. Currently, only one set is supported, so the
first set is used and the rest are ignored.sbd_watchdog_modules
(optional) - Watchdog kernel
modules to be loaded (creates /dev/watchdog*
devices).
@@ -1841,7 +1847,9 @@ sbd_watchdog
(optional) - Watchdog device to be used by
SBD. Defaults to /dev/watchdog
if not set.sbd_devices
(optional) - Devices to use for exchanging
-SBD messages and for monitoring. Defaults to empty list if not set./dev/disk/by-id/
).
Following examples show what the structure of the role variables @@ -1949,54 +1957,54 @@
- hosts: node1 node2
vars:
- 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:
- - /dev/vdx
- - /dev/vdy
- - /dev/vdz
- - node_name: node2
- sbd_watchdog_modules:
- - iTCO_wdt
- sbd_watchdog_modules_blocklist:
- - ipmi_watchdog
- sbd_watchdog: /dev/watchdog1
- sbd_devices:
- - /dev/vdx
- - /dev/vdy
- - /dev/vdz
- # 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:
- # taken from host_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
+ # 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: "{{ ha_cluster.sbd_devices | join(',') }}"
+ value: "{{ my_sbd_devices | join(',') }}"
- name: pcmk_delay_base
value: 30
@@ -2017,9 +2025,9 @@ Using ha_cluster
- ipmi_watchdog
sbd_watchdog: /dev/watchdog1
sbd_devices:
- - /dev/vdx
- - /dev/vdy
- - /dev/vdz
+ - /dev/disk/by-id/000001
+ - /dev/disk/by-id/000002
+ - /dev/disk/by-id/000003
node2:
ha_cluster:
sbd_watchdog_modules:
@@ -2028,9 +2036,9 @@ Using ha_cluster
- ipmi_watchdog
sbd_watchdog: /dev/watchdog1
sbd_devices:
- - /dev/vdx
- - /dev/vdy
- - /dev/vdz
Variables specified in inventory can be omitted when writing the playbook:
Using ha_cluster
instance_attrs:
- attrs:
# taken from host_vars
- - name: devices
- value: "{{ ha_cluster.sbd_devices | join(',') }}"
- - name: pcmk_delay_base
- value: 30
-
- roles:
- - linux-system-roles.ha_cluster
If both the ha_cluster_node_options
and
ha_cluster
variables contain SBD options, those in
ha_cluster_node_options
have precedence.
ha_cluster_sbd_options
This variable defines various settings which vary from cluster node to cluster node.
Note: Use an inventory or playbook hosts to specify @@ -878,7 +880,9 @@
ha_cluster_sbd_options
sbd_watchdog
(optional) - Watchdog device to be used by
SBD. Defaults to /dev/watchdog
if not set.sbd_devices
(optional) - Devices to use for exchanging
-SBD messages and for monitoring. Defaults to empty list if not set./dev/disk/by-id/
).
attributes
(optional) - List of sets of Pacemaker node
attributes for the node. Currently, only one set is supported, so the
first set is used and the rest are ignored.sbd_watchdog_modules
(optional) - Watchdog kernel
modules to be loaded (creates /dev/watchdog*
devices).
@@ -1841,7 +1847,9 @@ sbd_watchdog
(optional) - Watchdog device to be used by
SBD. Defaults to /dev/watchdog
if not set.sbd_devices
(optional) - Devices to use for exchanging
-SBD messages and for monitoring. Defaults to empty list if not set./dev/disk/by-id/
).
Following examples show what the structure of the role variables @@ -1949,54 +1957,54 @@
- hosts: node1 node2
vars:
- 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:
- - /dev/vdx
- - /dev/vdy
- - /dev/vdz
- - node_name: node2
- sbd_watchdog_modules:
- - iTCO_wdt
- sbd_watchdog_modules_blocklist:
- - ipmi_watchdog
- sbd_watchdog: /dev/watchdog1
- sbd_devices:
- - /dev/vdx
- - /dev/vdy
- - /dev/vdz
- # 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:
- # taken from host_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
+ # 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: "{{ ha_cluster.sbd_devices | join(',') }}"
+ value: "{{ my_sbd_devices | join(',') }}"
- name: pcmk_delay_base
value: 30
@@ -2017,9 +2025,9 @@ Using ha_cluster
- ipmi_watchdog
sbd_watchdog: /dev/watchdog1
sbd_devices:
- - /dev/vdx
- - /dev/vdy
- - /dev/vdz
+ - /dev/disk/by-id/000001
+ - /dev/disk/by-id/000002
+ - /dev/disk/by-id/000003
node2:
ha_cluster:
sbd_watchdog_modules:
@@ -2028,9 +2036,9 @@ Using ha_cluster
- ipmi_watchdog
sbd_watchdog: /dev/watchdog1
sbd_devices:
- - /dev/vdx
- - /dev/vdy
- - /dev/vdz
Variables specified in inventory can be omitted when writing the playbook:
Using ha_cluster
instance_attrs:
- attrs:
# taken from host_vars
- - name: devices
- value: "{{ ha_cluster.sbd_devices | join(',') }}"
- - name: pcmk_delay_base
- value: 30
-
- roles:
- - linux-system-roles.ha_cluster
If both the ha_cluster_node_options
and
ha_cluster
variables contain SBD options, those in
ha_cluster_node_options
have precedence.