support running hb_gui over ssh

This commit is contained in:
Adam Spiers 2014-01-16 19:22:13 +00:00
parent 434332c1dd
commit 7e1fa9f68d
2 changed files with 16 additions and 0 deletions

View File

@ -16,6 +16,12 @@
case node.platform
when 'suse'
default[:pacemaker][:platform][:packages] = %w(pacemaker)
# pacemaker-mgmt-client provides hb_gui, which it's useful
# to run over ssh.
default[:pacemaker][:platform][:packages] += %w(
pacemaker-mgmt-client xorg-x11-xauth
)
else
Chef::Application.fatal! "FIXME: #{node.platform} platform not supported yet"
return

View File

@ -45,3 +45,13 @@ 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