Install pacemaker packages before corosync

That way, pacemaker is already there when we start corosync, which is
something that we need.
This commit is contained in:
Vincent Untz 2014-02-27 11:02:48 +01:00
parent f66268162d
commit 99c7130e61
2 changed files with 14 additions and 16 deletions

View File

@ -18,6 +18,20 @@
# limitations under the License.
#
node[:pacemaker][:platform][:packages].each do |pkg|
package pkg
end
# required to run hb_gui
if platform_family? "suse"
cmd = "SuSEconfig --module gtk2"
execute cmd do
user "root"
command cmd
not_if { File.exists? "/etc/gtk-2.0/gdk-pixbuf64.loaders" }
end
end
if Chef::Config[:solo]
::Chef::Log.warn "Using Chef Solo, you are expected to manually include the corosync default recipe!"
else

View File

@ -18,12 +18,6 @@
# limitations under the License.
#
node[:pacemaker][:platform][:packages].each do |pkg|
package pkg do
action :install
end
end
crm_conf = node[:pacemaker][:crm][:initial_config_file]
template crm_conf do
source "crm-initial.conf.erb"
@ -45,13 +39,3 @@ if platform_family? "rhel"
notifies :restart, "service[clvm]", :immediately
end
end
# required to run hb_gui
if platform_family? "suse"
cmd = "SuSEconfig --module gtk2"
execute cmd do
user "root"
command cmd
not_if { File.exists? "/etc/gtk-2.0/gdk-pixbuf64.loaders" }
end
end