From a68a0d81fcf5bc65b5ee77f0d02e58dc6aa88367 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Fri, 3 Jan 2014 18:21:06 +0000 Subject: [PATCH] only need to restart clvm on RH platforms --- recipes/setup.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/recipes/setup.rb b/recipes/setup.rb index 2b6810a..27b599e 100644 --- a/recipes/setup.rb +++ b/recipes/setup.rb @@ -26,7 +26,11 @@ end execute "sleep 2" -service "pacemaker" do - action [ :enable, :start ] - notifies :restart, "service[clvm]", :immediately +if platform_family? "rhel" + execute "sleep 2" + + service "pacemaker" do + action [ :enable, :start ] + notifies :restart, "service[clvm]", :immediately + end end