Skip to content

Commit

Permalink
Change permissions and owner of files retrieved from S3
Browse files Browse the repository at this point in the history
Signed-off-by: Jacopo De Amicis <[email protected]>
  • Loading branch information
jdeamicis committed Feb 1, 2024
1 parent 22b8561 commit 8a1c94d
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@
bucket_name = node['slurmdbd_conf_bucket']
config_files = ["slurmdbd.conf", "slurm_external_slurmdbd.conf"]

config_files.each do |file|
remote_object file do
url "s3://#{bucket_name}/#{file}"
destination "#{node['cluster']['slurm']['install_dir']}/etc/#{file}"
config_files.each do |config_file|

remote_object config_file do
url "s3://#{bucket_name}/#{config_file}"
destination "#{node['cluster']['slurm']['install_dir']}/etc/#{config_file}"
sensitive true
ignore_failure true
end

file config_file do
mode '0600'
owner node['cluster']['slurm']['user']
group node['cluster']['slurm']['group']
end
end

0 comments on commit 8a1c94d

Please sign in to comment.