File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
cookbooks/aws-parallelcluster-platform/resources/dcv Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1818
1919use 'partial/_dcv_common'
2020use 'partial/_rhel_common'
21+
22+ def prereq_packages
23+ # gnome-terminal is not yet available AL2 ARM. Install mate-terminal instead
24+ # NOTE: installing mate-terminal requires enabling the amazon-linux-extras epel topic
25+ # which is done in base_install.
26+ %w( gdm gnome-session gnome-classic-session gnome-session-xsession
27+ xorg-x11-server-Xorg xorg-x11-fonts-Type1 xorg-x11-drivers
28+ gnu-free-fonts-common gnu-free-mono-fonts gnu-free-sans-fonts
29+ gnu-free-serif-fonts glx-utils ) + ( arm_instance? ? %w( mate-terminal ) : %w( gnome-terminal ) )
30+ end
31+
32+ action_class do
33+ def pre_install
34+ package prereq_packages do
35+ retries 10
36+ retry_delay 5
37+ end
38+
39+ # Use Gnome in place of Gnome-classic
40+ file "Setup Gnome standard" do
41+ content "PREFERRED=/usr/bin/gnome-session"
42+ owner "root"
43+ group "root"
44+ mode "0755"
45+ path "/etc/sysconfig/desktop"
46+ end
47+ end
48+ end
You can’t perform that action at this time.
0 commit comments