Skip to content

Commit 78a148f

Browse files
committed
Reorder internal variables in default.rb to distinguish the ones defined in the cfnconfig file
Signed-off-by: Enrico Usai <[email protected]>
1 parent 3466889 commit 78a148f

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

attributes/default.rb

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -411,31 +411,34 @@
411411
# ParallelCluster internal variables (also in /etc/parallelcluster/cfnconfig)
412412
default['cluster']['region'] = 'us-east-1'
413413
default['cluster']['stack_name'] = nil
414-
default['cluster']['ddb_table'] = nil
415-
default['cluster']['log_group_name'] = "NONE"
416-
default['cluster']['node_type'] = nil
417414
default['cluster']['preinstall'] = 'NONE'
418415
default['cluster']['preinstall_args'] = 'NONE'
419-
default['cluster']['proxy'] = 'NONE'
420416
default['cluster']['postinstall'] = 'NONE'
421417
default['cluster']['postinstall_args'] = 'NONE'
422418
default['cluster']['scheduler'] = 'slurm'
423419
default['cluster']['scheduler_slots'] = 'vcpus'
424-
default['cluster']['disable_hyperthreading_manually'] = 'false'
420+
default['cluster']['scheduler_queue_name'] = nil
425421
default['cluster']['instance_slots'] = '1'
426-
default['cluster']['volume'] = nil
427-
default['cluster']['volume_fs_type'] = 'ext4'
428422
default['cluster']['ephemeral_dir'] = '/scratch'
429423
default['cluster']['ebs_shared_dirs'] = '/shared'
430-
default['cluster']['efs_shared_dir'] = 'NONE'
431-
default['cluster']['efs_fs_id'] = nil
424+
default['cluster']['proxy'] = 'NONE'
425+
default['cluster']['node_type'] = nil
426+
default['cluster']['cluster_user'] = 'ec2-user'
432427
default['cluster']['head_node'] = nil
433428
default['cluster']['head_node_private_ip'] = nil
429+
default['cluster']['volume'] = nil
430+
431+
# Other ParallelCluster internal variables
432+
default['cluster']['ddb_table'] = nil
433+
default['cluster']['log_group_name'] = "NONE"
434+
default['cluster']['disable_hyperthreading_manually'] = 'false'
435+
default['cluster']['volume_fs_type'] = 'ext4'
436+
default['cluster']['efs_shared_dir'] = 'NONE'
437+
default['cluster']['efs_fs_id'] = nil
434438
default['cluster']['cluster_admin_user'] = 'pcluster-admin'
435439
default['cluster']['cluster_admin_user_id'] = node['cluster']['reserved_base_uid']
436440
default['cluster']['cluster_admin_group'] = node['cluster']['cluster_admin_user']
437441
default['cluster']['cluster_admin_group_id'] = node['cluster']['cluster_admin_user_id']
438-
default['cluster']['cluster_user'] = 'ec2-user'
439442
default['cluster']['fsx_options'] = 'NONE'
440443
default['cluster']['fsx_fs_id'] = nil
441444
default['cluster']['fsx_dns_name'] = nil
@@ -447,7 +450,6 @@
447450
default['cluster']['dns_domain'] = nil
448451
default['cluster']['use_private_hostname'] = 'false'
449452
default['cluster']['skip_install_recipes'] = 'yes'
450-
default['cluster']['scheduler_queue_name'] = nil
451453

452454
# AWS domain
453455
default['cluster']['aws_domain'] = aws_domain # ~FC044

0 commit comments

Comments
 (0)