File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1717
1818include_recipe 'aws-parallelcluster::base_install'
1919
20- if node [ 'platform_family' ] == 'amazon' and node [ 'platform_version' ] == '2'
20+ if node [ 'platform_family' ] == 'amazon' && node [ 'platform_version' ] == '2'
2121 # NOTE: temporary workaround for amazon linux 2 while alternative solutions are evaluated
2222 execute "hostnamectl set-hostname #{ node [ 'ec2' ] [ 'local_hostname' ] } "
2323 short_hostname = node [ 'ec2' ] [ 'local_hostname' ] . split ( '.' ) [ 0 ]
Original file line number Diff line number Diff line change 1818case node [ 'platform_family' ]
1919when 'rhel' , 'amazon'
2020 include_recipe 'yum'
21- if node [ 'platform_family' ] == 'amazon' and node [ 'platform_version' ] . to_i == 2
21+ if node [ 'platform_family' ] == 'amazon' && node [ 'platform_version' ] . to_i == 2
2222 alinux_extras_topic 'epel'
23- else
24- include_recipe "yum-epel" if node [ 'platform_version' ] . to_i < 7
23+ elsif node [ 'platform_version' ] . to_i < 7
24+ include_recipe "yum-epel"
2525 end
2626
2727
Original file line number Diff line number Diff line change 2020
2121# Configure the system to enable NICE DCV to have direct access to the Linux server's GPU and enable GPU sharing.
2222def allow_gpu_acceleration
23-
2423 # On CentOS 7 fix circular dependency multi-user.target -> cloud-init-> isolate multi-user.target.
2524 # multi-user.target doesn't start until cloud-init run is finished. So isolate multi-user.target
2625 # is stuck into starting, which keep hanging chef until the 3600s timeout.
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def disable_lock_screen
9191 retry_delay 5
9292 end
9393 # Install the desktop environment and the desktop manager packages
94- prereq_packages = %W [ ubuntu-desktop lightdm mesa-utils ]
94+ prereq_packages = %w [ ubuntu-desktop lightdm mesa-utils ]
9595 package prereq_packages do
9696 retries 10
9797 retry_delay 5
@@ -110,7 +110,7 @@ def disable_lock_screen
110110 end
111111
112112 when 'amazon'
113- prereq_packages = %W [ gdm gnome-session gnome-classic-session gnome-session-xsession
113+ prereq_packages = %w [ gdm gnome-session gnome-classic-session gnome-session-xsession
114114 xorg-x11-server-Xorg xorg-x11-fonts-Type1 xorg-x11-drivers
115115 gnome-terminal gnu-free-fonts-common gnu-free-mono-fonts
116116 gnu-free-sans-fonts gnu-free-serif-fonts glx-utils ]
You can’t perform that action at this time.
0 commit comments