Move RHEL-specific bit out of founder-exclusive code path

This commit is contained in:
Vincent Untz 2014-02-27 11:08:49 +01:00
parent 99c7130e61
commit 17e87c6777
2 changed files with 9 additions and 9 deletions

View File

@ -41,3 +41,12 @@ end
if node[:pacemaker][:founder]
include_recipe "pacemaker::setup"
end
if platform_family? "rhel"
execute "sleep 2"
service "pacemaker" do
action [ :enable, :start ]
notifies :restart, "service[clvm]", :immediately
end
end

View File

@ -30,12 +30,3 @@ execute "crm initial configuration" do
user "root"
command "crm configure load replace #{crm_conf}"
end
if platform_family? "rhel"
execute "sleep 2"
service "pacemaker" do
action [ :enable, :start ]
notifies :restart, "service[clvm]", :immediately
end
end