Skip to content

Commit d111d06

Browse files
committed
DCV for amzn2023
1 parent 95ba2e2 commit d111d06

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

cookbooks/aws-parallelcluster-platform/resources/dcv/dcv_alinux2023.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,31 @@
1818

1919
use 'partial/_dcv_common'
2020
use '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

0 commit comments

Comments
 (0)