Skip to content

Commit f9dac1b

Browse files
Remove unnecessary code in external_slurmdbd_config
Signed-off-by: Hanwen <[email protected]>
1 parent de340fc commit f9dac1b

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

cookbooks/aws-parallelcluster-entrypoints/recipes/external_slurmdbd_config.rb

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,6 @@
1212
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# Mock necessary attributes to reuse the recipes from ParallelCluster.
16-
node.default['cluster']['slurm']['install_dir'] = '/opt/slurm'
17-
node.default['cluster']['slurm']['user'] = 'slurm'
18-
node.default['cluster']['slurm']['group'] = 'slurm'
19-
node.default['cluster']['scripts_dir'] = '/opt/parallelcluster/scripts'
20-
node.default['cluster']['region'] = node['region']
21-
node.default['cluster']['slurmdbd_response_retries'] = 30
22-
node.default['cluster']['stack_name'] = node['stack_name']
23-
node.default['cluster']['munge']['user'] = 'munge'
24-
node.default['cluster']['munge']['group'] = node['cluster']['munge']['user']
25-
node.default['cluster']['node_type'] = 'ExternalSlurmDbd' # force node_type to ExternalSlurmDbd to configure CW agent
26-
node.default['cluster']['cw_logging_enabled'] = 'true' # enable CW agent logging
27-
node.default['cluster']['log_group_name'] = node['log_group_name'] # map the `log_group_name` coming from the dna.json to the proper variable expected by the recipes
28-
29-
# rubocop:disable Lint/DuplicateBranch
30-
if platform?('amazon') && node['platform_version'] == "2"
31-
node.default['cluster']['cluster_user'] = 'ec2-user'
32-
elsif platform?('centos') && node['platform_version'].to_i == 7
33-
node.default['cluster']['cluster_user'] = 'centos'
34-
elsif platform?('redhat')
35-
node.default['cluster']['cluster_user'] = 'ec2-user'
36-
elsif platform?('rocky')
37-
node.default['cluster']['cluster_user'] = 'rocky'
38-
elsif platform?('ubuntu')
39-
node.default['cluster']['cluster_user'] = 'ubuntu'
40-
end
41-
# rubocop:enable Lint/DuplicateBranch
42-
4315
include_recipe 'aws-parallelcluster-slurm::config_head_node_directories'
4416

4517
include_recipe 'aws-parallelcluster-slurm::external_slurmdbd_disable_unrequired_services'

0 commit comments

Comments
 (0)