forked from aws/aws-parallelcluster-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kitchen.validate-config.yml
94 lines (83 loc) · 3.35 KB
/
kitchen.validate-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Validates config recipes
---
verifier:
inspec_tests:
- cookbooks/aws-parallelcluster-awsbatch/test
- cookbooks/aws-parallelcluster-platform/test
- cookbooks/aws-parallelcluster-environment/test
- cookbooks/aws-parallelcluster-computefleet/test
- cookbooks/aws-parallelcluster-shared/test
- cookbooks/aws-parallelcluster-slurm/test
controls:
- /tag:config/
_common_cluster_attributes: &_common_cluster_attributes
stack_name: <%= ENV['AWS_STACK_NAME'] || 'fake_stack' %>
volume: <%= ENV['VOLUME'] || "''" %>
region: <%= ENV['KITCHEN_AWS_REGION'] %>
ephemeral_dir: <%= ENV['EPHEMERAL_DIR'] || '/scratch' %>
ebs_shared_dirs: <%= ENV['EBS_SHARED_DIRS'] || '/shared' %>
cluster_s3_bucket: <%= ENV['CLUSTER_CONFIG_S3_BUCKET'] %>
cluster_config_s3_key: <%= ENV['CLUSTER_CONFIG_S3_KEY'] %>
instance_types_data_s3_key: <%= ENV['INSTANCE_TYPES_DATA_S3_KEY'] %>
os: <%= ENV['OS'] %>
dcv_enabled: 'head_node'
dcv_port: '8443'
enable_efa: 'efa'
nvidia:
enabled: <%= ENV['NVIDIA_ENABLED'] %>
shared_storage_type: ebs
default_user_home: shared
_head_node_cluster_attributes: &_head_node_cluster_attributes
<< : *_common_cluster_attributes
node_type: 'HeadNode'
ddb_table: <%= ENV['DDB_TABLE'] %>
slurm_ddb_table: <%= ENV['DDB_TABLE'] %>
config:
Scheduling:
SlurmSettings:
MungeKeySecretArn: null
_compute_node_cluster_attributes: &_compute_node_cluster_attributes
<< : *_common_cluster_attributes
node_type: 'ComputeFleet'
head_node: <%= ENV['HEAD_NODE'] %>
head_node_private_ip: <%= ENV['HEAD_NODE_PRIVATE_IP'] %>
_run_list: &_run_list
- recipe[aws-parallelcluster-tests::setup]
- recipe[aws-parallelcluster-entrypoints::init]
- recipe[aws-parallelcluster-entrypoints::config]
- recipe[aws-parallelcluster-entrypoints::finalize]
- recipe[aws-parallelcluster-tests::tear_down]
provisioner:
attributes:
kitchen: true
suites:
- name: slurm-config-head-node-x86-64-<%= ENV['KITCHEN_INSTANCE_TYPE'] || 'c5n.xlarge' %>
run_list: *_run_list
attributes: &attributes_slurm_config_HeadNode
cluster:
<< : *_head_node_cluster_attributes
scheduler: 'slurm'
enable_intel_hpc_platform: "<%= ENV['ENABLE_INTEL_HPC_PLATFORM'] || false %>"
- name: slurm-config-head-node-arm64-<%= ENV['KITCHEN_INSTANCE_TYPE'] || 'c5n.xlarge' %>
run_list: *_run_list
attributes: *attributes_slurm_config_HeadNode
- name: awsbatch-config-head-node-x86-64-<%= ENV['KITCHEN_INSTANCE_TYPE'] || 'c5n.xlarge' %>
run_list: *_run_list
attributes: &attributes_awsbatch_config_HeadNode
cluster:
<< : *_head_node_cluster_attributes
scheduler: 'awsbatch'
custom_awsbatchcli_package: <%= ENV['CUSTOM_AWSBATCHCLI_URL'] %>
- name: awsbatch-config-head-node-arm64-<%= ENV['KITCHEN_INSTANCE_TYPE'] || 'c5n.xlarge' %>
run_list: *_run_list
attributes: *attributes_awsbatch_config_HeadNode
- name: slurm-config-compute-fleet-x86-64-<%= ENV['KITCHEN_INSTANCE_TYPE'] || 'c5n.xlarge' %>
run_list: *_run_list
attributes: &attributes_slurm_config_ComputeFleet
cluster:
<< : *_compute_node_cluster_attributes
scheduler: 'slurm'
slurm_nodename: 'fake-dy-compute-1'
- name: slurm-config-compute-fleet-arm64-<%= ENV['KITCHEN_INSTANCE_TYPE'] || 'c5n.xlarge' %>
run_list: *_run_list
attributes: *attributes_slurm_config_ComputeFleet