Move RHEL-specific bit out of founder-exclusive code path
This commit is contained in:
parent
99c7130e61
commit
17e87c6777
@ -41,3 +41,12 @@ end
|
|||||||
if node[:pacemaker][:founder]
|
if node[:pacemaker][:founder]
|
||||||
include_recipe "pacemaker::setup"
|
include_recipe "pacemaker::setup"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if platform_family? "rhel"
|
||||||
|
execute "sleep 2"
|
||||||
|
|
||||||
|
service "pacemaker" do
|
||||||
|
action [ :enable, :start ]
|
||||||
|
notifies :restart, "service[clvm]", :immediately
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@ -30,12 +30,3 @@ execute "crm initial configuration" do
|
|||||||
user "root"
|
user "root"
|
||||||
command "crm configure load replace #{crm_conf}"
|
command "crm configure load replace #{crm_conf}"
|
||||||
end
|
end
|
||||||
|
|
||||||
if platform_family? "rhel"
|
|
||||||
execute "sleep 2"
|
|
||||||
|
|
||||||
service "pacemaker" do
|
|
||||||
action [ :enable, :start ]
|
|
||||||
notifies :restart, "service[clvm]", :immediately
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user