forked from aws/aws-parallelcluster-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[develop] Share the munge key from the Parallel Cluster shared folder (…
…aws#2467) * Change the shared munge key to the shared directory * Share munge key also to LoginNodes * Correct config login and remove unused function in rotation script * Address comments. * Rename SHARED_DIRECTORY to SHARED_DIRECTORY_COMPUTE. Change SlurmSettings to MungeKeySettings to adopt new change in cli
- Loading branch information
Showing
9 changed files
with
60 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,5 +189,5 @@ suites: | |
scheduler: 'slurm' | ||
config: | ||
DevSettings: | ||
SlurmSettings: | ||
MungeKeySettings: | ||
MungeKeySecretArn: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 11 additions & 8 deletions
19
cookbooks/aws-parallelcluster-slurm/recipes/test/mock_munge_key.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
munge_user_dir = "/home/#{node['cluster']['cluster_user']}/.munge" | ||
directory munge_user_dir do | ||
mode '1777' | ||
end | ||
munge_dirs = %W(#{node['cluster']['shared_dir']}/.munge #{node['cluster']['shared_dir_login']}/.munge) | ||
|
||
munge_dirs.each do |munge_dir| | ||
directory munge_dir do | ||
mode '0700' | ||
end | ||
|
||
file "#{munge_user_dir}/.munge.key" do | ||
content 'munge-key' | ||
owner node['cluster']['munge']['user'] | ||
group node['cluster']['munge']['group'] | ||
file "#{munge_dir}/.munge.key" do | ||
content 'munge-key' | ||
owner node['cluster']['munge']['user'] | ||
group node['cluster']['munge']['group'] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters