diff --git a/cookbooks/aws-parallelcluster-slurm/kitchen.slurm-config.yml b/cookbooks/aws-parallelcluster-slurm/kitchen.slurm-config.yml index d2acfc912..f0fe83b23 100644 --- a/cookbooks/aws-parallelcluster-slurm/kitchen.slurm-config.yml +++ b/cookbooks/aws-parallelcluster-slurm/kitchen.slurm-config.yml @@ -189,8 +189,8 @@ suites: node_type: HeadNode scheduler: 'slurm' config: - DevSettings: - MungeKeySettings: + Scheduling: + SlurmSettings: MungeKeySecretArn: null - name: config_slurm_accounting run_list: diff --git a/cookbooks/aws-parallelcluster-slurm/libraries/helpers.rb b/cookbooks/aws-parallelcluster-slurm/libraries/helpers.rb index dfc5526ae..7e15209bf 100644 --- a/cookbooks/aws-parallelcluster-slurm/libraries/helpers.rb +++ b/cookbooks/aws-parallelcluster-slurm/libraries/helpers.rb @@ -69,14 +69,14 @@ def setup_munge_head_node # Generate munge key or get it's value from secrets manager munge_key_manager 'manage_munge_key' do munge_key_secret_arn lazy { - node['cluster']['config'].dig(:DevSettings, :MungeKeySettings, :MungeKeySecretArn) + node['cluster']['config'].dig(:Scheduling, :SlurmSettings, :MungeKeySecretArn) } end end def update_munge_head_node munge_key_manager 'update_munge_key' do - munge_key_secret_arn lazy { node['cluster']['config'].dig(:DevSettings, :MungeKeySettings, :MungeKeySecretArn) } + munge_key_secret_arn lazy { node['cluster']['config'].dig(:Scheduling, :SlurmSettings, :MungeKeySecretArn) } action :update_munge_key only_if { ::File.exist?(node['cluster']['previous_cluster_config_path']) && is_custom_munge_key_updated? } end diff --git a/cookbooks/aws-parallelcluster-slurm/libraries/update.rb b/cookbooks/aws-parallelcluster-slurm/libraries/update.rb index 45a5c916e..ffcc0d590 100644 --- a/cookbooks/aws-parallelcluster-slurm/libraries/update.rb +++ b/cookbooks/aws-parallelcluster-slurm/libraries/update.rb @@ -80,9 +80,9 @@ def execute_command(command, user = "root", timeout = 300, raise_on_error = true cmd.stdout.strip end -# Verify if MungeKeySecretArn in MungeKeySettings section of cluster configuration has been updated +# Verify if MungeKeySecretArn in SlurmSettings section of cluster configuration has been updated def is_custom_munge_key_updated? - config_parameter_changed?(%w(DevSettings MungeKeySettings MungeKeySecretArn)) + config_parameter_changed?(%w(Scheduling SlurmSettings MungeKeySecretArn)) end def is_login_nodes_pool_name_updated? diff --git a/cookbooks/aws-parallelcluster-slurm/recipes/config/config_head_node.rb b/cookbooks/aws-parallelcluster-slurm/recipes/config/config_head_node.rb index dd30a2c7b..73a46ecdc 100644 --- a/cookbooks/aws-parallelcluster-slurm/recipes/config/config_head_node.rb +++ b/cookbooks/aws-parallelcluster-slurm/recipes/config/config_head_node.rb @@ -26,7 +26,7 @@ group 'root' mode '0700' variables( - munge_key_secret_arn: lazy { node['cluster']['config'].dig(:DevSettings, :MungeKeySettings, :MungeKeySecretArn) }, + munge_key_secret_arn: lazy { node['cluster']['config'].dig(:Scheduling, :SlurmSettings, :MungeKeySecretArn) }, region: node['cluster']['region'], munge_user: node['cluster']['munge']['user'], munge_group: node['cluster']['munge']['group'], diff --git a/cookbooks/aws-parallelcluster-slurm/recipes/update/update_head_node.rb b/cookbooks/aws-parallelcluster-slurm/recipes/update/update_head_node.rb index a8ffc5aaf..2427bb6ab 100644 --- a/cookbooks/aws-parallelcluster-slurm/recipes/update/update_head_node.rb +++ b/cookbooks/aws-parallelcluster-slurm/recipes/update/update_head_node.rb @@ -220,7 +220,7 @@ def update_nodes_in_queue(strategy, queues) group 'root' mode '0700' variables( - munge_key_secret_arn: lazy { node['cluster']['config'].dig(:DevSettings, :MungeKeySettings, :MungeKeySecretArn) }, + munge_key_secret_arn: lazy { node['cluster']['config'].dig(:Scheduling, :SlurmSettings, :MungeKeySecretArn) }, region: node['cluster']['region'], munge_user: node['cluster']['munge']['user'], munge_group: node['cluster']['munge']['group'], diff --git a/kitchen.validate-config.yml b/kitchen.validate-config.yml index 97d8968d7..c83c63a82 100644 --- a/kitchen.validate-config.yml +++ b/kitchen.validate-config.yml @@ -34,8 +34,8 @@ _head_node_cluster_attributes: &_head_node_cluster_attributes ddb_table: <%= ENV['DDB_TABLE'] %> slurm_ddb_table: <%= ENV['DDB_TABLE'] %> config: - DevSettings: - MungeKeySettings: + Scheduling: + SlurmSettings: MungeKeySecretArn: null _compute_node_cluster_attributes: &_compute_node_cluster_attributes