|
12 | 12 | # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
|
13 | 13 | # limitations under the License.
|
14 | 14 |
|
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 |
| - |
43 | 15 | include_recipe 'aws-parallelcluster-slurm::config_head_node_directories'
|
44 | 16 |
|
45 | 17 | include_recipe 'aws-parallelcluster-slurm::external_slurmdbd_disable_unrequired_services'
|
|
0 commit comments