File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
cookbooks/aws-parallelcluster-config/recipes Expand file tree Collapse file tree 1 file changed +5
-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 . 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'
7982 options options 'nfsvers=4.2'
8083 action %i( mount enable )
8184 retries 10
8285 retry_delay 6
8386 end
8487 when 'ONTAP'
85- fsx_volume_junction_path = fsx_volume_junction_path_array [ index ]
8688 # Mount FSx over NFS
8789 mount fsx_shared_dir do
88- device "#{ dns_name } :/ #{ fsx_volume_junction_path } "
90+ device "#{ dns_name } :#{ fsx_volume_junction_path } "
8991 fstype 'nfs'
9092 action %i( mount enable )
9193 retries 10
You can’t perform that action at this time.
0 commit comments