Make stonith-enabled/no-quorum-policy variables in crm-initial.conf
The values will change depending on options in the wrapper, or other factors.
This commit is contained in:
parent
e388359f6e
commit
5044f71539
@ -32,3 +32,5 @@ end
|
|||||||
|
|
||||||
default[:pacemaker][:founder] = false
|
default[:pacemaker][:founder] = false
|
||||||
default[:pacemaker][:crm][:initial_config_file] = "/etc/corosync/crm-initial.conf"
|
default[:pacemaker][:crm][:initial_config_file] = "/etc/corosync/crm-initial.conf"
|
||||||
|
default[:pacemaker][:crm][:stonith_enabled] = false
|
||||||
|
default[:pacemaker][:crm][:no_quorum_policy] = "ignore"
|
||||||
|
@ -25,6 +25,10 @@ template crm_conf do
|
|||||||
owner "root"
|
owner "root"
|
||||||
group "root"
|
group "root"
|
||||||
mode 0600
|
mode 0600
|
||||||
|
variables(
|
||||||
|
:stonith_enabled => node[:pacemaker][:crm][:stonith_enabled],
|
||||||
|
:no_quorum_policy => node[:pacemaker][:crm][:no_quorum_policy]
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
execute "crm initial configuration" do
|
execute "crm initial configuration" do
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
property $id="cib-bootstrap-options" \
|
property $id="cib-bootstrap-options" \
|
||||||
stonith-enabled="false" \
|
stonith-enabled="<%= @stonith_enabled %>" \
|
||||||
no-quorum-policy="ignore" \
|
no-quorum-policy="<%= @no_quorum_policy %>" \
|
||||||
placement-strategy="balanced"
|
placement-strategy="balanced"
|
||||||
op_defaults $id="op-options" \
|
op_defaults $id="op-options" \
|
||||||
timeout="600" \
|
timeout="600" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user