Skip to content

Commit

Permalink
Patch for unmounting shared storage with a cluster update
Browse files Browse the repository at this point in the history
Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster committed Apr 10, 2024
1 parent 949511d commit bd329cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cookbooks/aws-parallelcluster-config/resources/manage_ebs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@

# Delete the shared directories
directory shared_dir_array[index] do
recursive true
recursive false
action :delete
only_if { Dir.exist?(shared_dir_array[index]) && Dir.empty?(shared_dir_array[index]) }
end
end
end
Expand Down
3 changes: 2 additions & 1 deletion cookbooks/aws-parallelcluster-config/resources/manage_efs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@
owner 'root'
group 'root'
mode '1777'
recursive true
recursive false
action :delete
only_if { Dir.exist?(efs_shared_dir.to_s) && Dir.empty?(efs_shared_dir.to_s) }
end
end
end
3 changes: 2 additions & 1 deletion cookbooks/aws-parallelcluster-config/resources/manage_fsx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@
owner 'root'
group 'root'
mode '1777'
recursive true
recursive false
action :delete
only_if { Dir.exist?(fsx_shared_dir) && Dir.empty?(fsx_shared_dir) }
end
end
end

0 comments on commit bd329cd

Please sign in to comment.