File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
cookbooks/aws-parallelcluster-config/recipes Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2626 fsx_shared_dir = fsx_shared_dir_array [ index ]
2727 fsx_dns_name = fsx_dns_name_array [ index ]
2828 fsx_fs_type = fsx_fs_type_array [ index ]
29+ fsx_volume_junction_path = fsx_volume_junction_path_array [ index ]
30+
2931 # Path needs to be fully qualified, for example "shared/temp" becomes "/shared/temp"
3032 fsx_shared_dir = "/#{ fsx_shared_dir } " unless fsx_shared_dir . start_with? ( '/' )
33+ fsx_volume_junction_path = "/#{ fsx_volume_junction_path } " unless fsx_volume_junction_path . nil? or fsx_volume_junction_path . start_with? ( '/' )
3134
3235 # Create the shared directories
3336 directory fsx_shared_dir do
7477 when 'OPENZFS'
7578 # Mount FSx over NFS
7679 mount fsx_shared_dir do
77- device "#{ dns_name } :/fsx "
80+ device "#{ dns_name } :#{ fsx_volume_junction_path } "
7881 fstype 'nfs'
82+ dump 0
83+ pass 0
7984 options options 'nfsvers=4.2'
8085 action %i( mount enable )
8186 retries 10
8287 retry_delay 6
8388 end
8489 when 'ONTAP'
85- fsx_volume_junction_path = fsx_volume_junction_path_array [ index ]
8690 # Mount FSx over NFS
8791 mount fsx_shared_dir do
88- device "#{ dns_name } :/ #{ fsx_volume_junction_path } "
92+ device "#{ dns_name } :#{ fsx_volume_junction_path } "
8993 fstype 'nfs'
94+ dump 0
95+ pass 0
9096 action %i( mount enable )
9197 retries 10
9298 retry_delay 6
You can’t perform that action at this time.
0 commit comments