Only load crm-initial.conf when the file got changed
There is no point in loading it if it's the same as before, since we already imported these settings. We load it immediately because we know that corosync is running already, and it's a critical file that we do not want to fail loading because of a later crash in chef-client.
This commit is contained in:
parent
5140ad4cb6
commit
e388359f6e
@ -19,6 +19,7 @@
|
||||
#
|
||||
|
||||
crm_conf = node[:pacemaker][:crm][:initial_config_file]
|
||||
|
||||
template crm_conf do
|
||||
source "crm-initial.conf.erb"
|
||||
owner "root"
|
||||
@ -29,4 +30,6 @@ end
|
||||
execute "crm initial configuration" do
|
||||
user "root"
|
||||
command "crm configure load replace #{crm_conf}"
|
||||
subscribes :run, resources(:template => crm_conf), :immediately
|
||||
action :nothing
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user