support running hb_gui over ssh
This commit is contained in:
parent
434332c1dd
commit
7e1fa9f68d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user