@@ -334,25 +334,9 @@ module load intelmpi && mpirun --help | grep '#{node['cluster']['intelmpi']['kit
334334###################
335335# instance store
336336###################
337-
338- ebs_shared_dirs_array = node [ 'cluster' ] [ 'ebs_shared_dirs' ] . split ( ',' )
339-
340- if ebs_shared_dirs_array . include? node [ 'cluster' ] [ 'ephemeral_dir' ]
341- # In this case the ephemeral storage should not be mounted because the mountpoint
342- # clashes with the mountpoint coming from t
343- bash 'test instance store mountpoint collision' do
344- cwd Chef ::Config [ :file_cache_path ]
345- user node [ 'cluster' ] [ 'cluster_user' ]
346- code <<-COLLISION
347- systemctl show setup-ephemeral.service -p ActiveState | grep "=inactive"
348- systemctl show setup-ephemeral.service -p UnitFileState | grep "=disabled"
349- COLLISION
350- end
351- else
352- bash 'test instance store' do
353- cwd Chef ::Config [ :file_cache_path ]
354- user node [ 'cluster' ] [ 'cluster_user' ]
355- code <<-EPHEMERAL
337+ bash 'test instance store' do
338+ cwd Chef ::Config [ :file_cache_path ]
339+ code <<-EPHEMERAL
356340 set -xe
357341 EPHEMERAL_DIR="#{ node [ 'cluster' ] [ 'ephemeral_dir' ] } "
358342
@@ -405,11 +389,11 @@ module load intelmpi && mpirun --help | grep '#{node['cluster']['intelmpi']['kit
405389 mkdir -p ${EPHEMERAL_DIR}/test_dir
406390 touch ${EPHEMERAL_DIR}/test_dir/test_file
407391 fi
408- EPHEMERAL
409- end
410- execute 'check setup-ephemeral service is enabled' do
411- command "systemctl is- enabled setup-ephemeral"
412- end
392+ EPHEMERAL
393+ user node [ 'cluster' ] [ 'cluster_user' ]
394+ end
395+ execute 'check setup-ephemeral service is enabled' do
396+ command "systemctl is-enabled setup-ephemeral"
413397end
414398
415399###################
0 commit comments