support running hb_gui over ssh
This commit is contained in:
@@ -16,6 +16,12 @@
|
|||||||
case node.platform
|
case node.platform
|
||||||
when 'suse'
|
when 'suse'
|
||||||
default[:pacemaker][:platform][:packages] = %w(pacemaker)
|
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
|
else
|
||||||
Chef::Application.fatal! "FIXME: #{node.platform} platform not supported yet"
|
Chef::Application.fatal! "FIXME: #{node.platform} platform not supported yet"
|
||||||
return
|
return
|
||||||
|
@@ -45,3 +45,13 @@ if platform_family? "rhel"
|
|||||||
notifies :restart, "service[clvm]", :immediately
|
notifies :restart, "service[clvm]", :immediately
|
||||||
end
|
end
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user