Skip to content

Commit 41b4468

Browse files
committed
Extract DCV packages in the sources folder and not in a temporary one
The chef cache path is not available in the dcv_config recipe if the extraction of DCV packages is performed at AMI creation time. By using sources dir we are sure to have them at runtime. Signed-off-by: Enrico Usai <[email protected]>
1 parent 681c0ce commit 41b4468

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

recipes/dcv_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def allow_gpu_acceleration
3434
end
3535

3636
# dcvgl package must be installed after NVIDIA and before starting up X
37-
dcv_gl = "#{Chef::Config[:file_cache_path]}/#{node['cfncluster']['dcv']['package']}/#{node['cfncluster']['dcv']['gl']}"
37+
dcv_gl = "#{node['cfncluster']['sources_dir']}/#{node['cfncluster']['dcv']['package']}/#{node['cfncluster']['dcv']['gl']}"
3838
package dcv_gl do
3939
action :install
4040
source dcv_gl

recipes/dcv_install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def disable_lock_screen
9191
end
9292

9393
bash 'extract dcv packages' do
94-
cwd Chef::Config[:file_cache_path]
94+
cwd node['cfncluster']['sources_dir']
9595
code "tar -xvzf #{dcv_tarball}"
9696
end
9797
end

0 commit comments

Comments
 (0)