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:
Vincent Untz 2014-03-13 14:33:01 +01:00
parent e388359f6e
commit 5044f71539
3 changed files with 8 additions and 2 deletions

View File

@ -32,3 +32,5 @@ end
default[:pacemaker][:founder] = false
default[:pacemaker][:crm][:initial_config_file] = "/etc/corosync/crm-initial.conf"
default[:pacemaker][:crm][:stonith_enabled] = false
default[:pacemaker][:crm][:no_quorum_policy] = "ignore"

View File

@ -25,6 +25,10 @@ template crm_conf do
owner "root"
group "root"
mode 0600
variables(
:stonith_enabled => node[:pacemaker][:crm][:stonith_enabled],
:no_quorum_policy => node[:pacemaker][:crm][:no_quorum_policy]
)
end
execute "crm initial configuration" do

View File

@ -1,6 +1,6 @@
property $id="cib-bootstrap-options" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
stonith-enabled="<%= @stonith_enabled %>" \
no-quorum-policy="<%= @no_quorum_policy %>" \
placement-strategy="balanced"
op_defaults $id="op-options" \
timeout="600" \