Add attributes to choose whether to install graphical UI or not
It might not make sense to install that for everyone, so make this an option disabled by default.
This commit is contained in:
@@ -19,7 +19,7 @@ when 'suse'
|
|||||||
|
|
||||||
# pacemaker-mgmt-client provides hb_gui, which it's useful
|
# pacemaker-mgmt-client provides hb_gui, which it's useful
|
||||||
# to run over ssh.
|
# to run over ssh.
|
||||||
default[:pacemaker][:platform][:packages] += %w(
|
default[:pacemaker][:platform][:graphical_packages] = %w(
|
||||||
pacemaker-mgmt-client xorg-x11-xauth
|
pacemaker-mgmt-client xorg-x11-xauth
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
@@ -22,6 +22,11 @@ node[:pacemaker][:platform][:packages].each do |pkg|
|
|||||||
package pkg
|
package pkg
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if node[:pacemaker][:setup_hb_gui]
|
||||||
|
node[:pacemaker][:platform][:graphical_packages].each do |pkg|
|
||||||
|
package pkg
|
||||||
|
end
|
||||||
|
|
||||||
# required to run hb_gui
|
# required to run hb_gui
|
||||||
if platform_family? "suse"
|
if platform_family? "suse"
|
||||||
cmd = "SuSEconfig --module gtk2"
|
cmd = "SuSEconfig --module gtk2"
|
||||||
@@ -31,6 +36,7 @@ if platform_family? "suse"
|
|||||||
not_if { File.exists? "/etc/gtk-2.0/gdk-pixbuf64.loaders" }
|
not_if { File.exists? "/etc/gtk-2.0/gdk-pixbuf64.loaders" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if Chef::Config[:solo]
|
if Chef::Config[:solo]
|
||||||
::Chef::Log.warn "Using Chef Solo, you are expected to manually include the corosync default recipe!"
|
::Chef::Log.warn "Using Chef Solo, you are expected to manually include the corosync default recipe!"
|
||||||
|
Reference in New Issue
Block a user