Skip to content

Commit

Permalink
Prevent pcluster from changing default permissions on /home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Aug 28, 2024
1 parent 66dd136 commit 714d6c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
volume "mount /home" do
action :mount
shared_dir '/home'
mode '1755'
device(lazy { "#{node['cluster']['head_node_private_ip']}:#{node['cluster']['head_node_home_path']}" })
fstype 'nfs'
options node['cluster']['nfs']['hard_mount_options']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
property :options, [Array, String], required: %i(mount)
property :device_type, [String, Symbol], default: :device
property :volume_id, String, required: %i(attach detach)
property :mode, String, default: '1777'

action :attach do
volume_id = new_resource.volume_id.strip
Expand Down Expand Up @@ -42,7 +43,7 @@
directory shared_dir do
owner 'root'
group 'root'
mode '1777'
mode new_resource.mode
recursive true
action :create
end
Expand Down

0 comments on commit 714d6c9

Please sign in to comment.