forked from aws/aws-parallelcluster-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kitchen.resources-install.yml
221 lines (219 loc) · 6.66 KB
/
kitchen.resources-install.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# Allows to test single resources.
#
# Must be run as local file (override) of kitchen.docker.yml
# export KITCHEN_YAML=kitchen.docker.yml
# export KITCHEN_LOCAL_YAML=kitchen.resources.yml
# See: https://kitchen.ci/docs/reference/configuration
---
verifier:
name: inspec
inspec_tests:
# resource tests will use controls from this directory
- path: test/resources
# If you need to test a resource with recipe/resources dependencies,
# add recipe[aws-parallelcluster::add_dependencies] as first item in the run_list
# then define a dependencies attribute, listing them with recipe: or resource: prefix.
# You can find an example in the add_depdendencies.rb file.
suites:
- name: install_packages
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-install::test_resource]
verifier:
controls:
- install_packages
attributes:
dependencies:
- resource:package_repos
resource: install_packages
- name: c_states
run_list:
- recipe[aws-parallelcluster-install::test_resource]
verifier:
controls:
- c_states_kernel_configured
attributes:
resource: c_states
- name: ec2_udev_rules
run_list:
- recipe[aws-parallelcluster-install::test_resource]
verifier:
controls:
- write_common_udev_configuration_files
- /ec2blkdev_service_installation/
- debian_udevd_reload_configuration
attributes:
resource: ec2_udev_rules
- name: mysql_client
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-install::test_resource]
verifier:
controls:
- mysql_client_installed
- mysql_client_source_node_created
attributes:
dependencies:
- recipe:aws-parallelcluster::test_dummy
- recipe:aws-parallelcluster-install::directories
resource: mysql_client
- name: nfs
run_list:
- recipe[aws-parallelcluster-common::test_resource]
verifier:
controls:
- nfs_installed_with_right_version
attributes:
resource: nfs
dependencies:
- recipe:aws-parallelcluster-test::docker_mock
- name: sticky_bits
run_list:
- recipe[aws-parallelcluster-config::test_resource]
verifier:
controls:
- sticky_bits_configured
attributes:
resource: sticky_bits
- name: slurm_dependencies
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-slurm::test_resource]
verifier:
controls:
- slurm_dependencies_installed
attributes:
resource: slurm_dependencies
dependencies:
- resource:package_repos
- name: jwt_dependencies
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-slurm::test_resource]
verifier:
controls:
- jwt_dependencies_installed
attributes:
resource: jwt_dependencies
dependencies:
- resource:package_repos
- name: efa_setup
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-common::test_resource]
verifier:
controls:
- efa_conflicting_packages_removed
- efa_prereq_packages_installed
- efa_installed
attributes:
resource: efa:setup
dependencies:
- recipe:aws-parallelcluster-install::directories
- name: munge
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-slurm::test_resource]
verifier:
controls:
- munge_installed
- munge_user_and_group_created
- munge_folders_created
- munge_init_script_configured
attributes:
resource: munge
dependencies:
- recipe:aws-parallelcluster::test_dummy
- recipe:aws-parallelcluster-install::directories
- resource:package_repos
- resource:install_packages
- name: stunnel_installed
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-install::test_resource]
verifier:
controls:
- stunnel_installed
attributes:
resource: stunnel:setup
dependencies:
- recipe:aws-parallelcluster-install::directories
- resource:package_repos
- resource:install_packages
- name: dns_domain_setup
run_list:
- recipe[aws-parallelcluster-slurm::test_resource]
verifier:
controls:
- dns_domain_setup
attributes:
resource: dns_domain
- name: ephemeral_drives
run_list:
- recipe[aws-parallelcluster-install::test_resource]
attributes:
resource: ephemeral_drives
verifier:
controls:
- ephemeral_drives_logical_volumes_manager_installed
- ephemeral_drives_script_created
- ephemeral_service_set_up
- ephemeral_service_after_network_config
- name: system_authentication
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-common::test_resource]
verifier:
controls:
- system_authentication_packages_installed
attributes:
resource: system_authentication
dependencies:
- resource:package_repos
- name: cloudwatch
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-install::test_resource]
verifier:
controls:
- /^cloudwatch/
attributes:
resource: cloudwatch
dependencies:
- recipe:aws-parallelcluster-test::docker_mock
- recipe:aws-parallelcluster-install::directories
- recipe:aws-parallelcluster-common::node_attributes
- name: arm_pl
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-install::test_resource]
verifier:
controls:
- /^arm_pl/
driver:
# arm_pl can be executed only on arm instance example: c6g.large
instance_type: c6g.large
attributes:
resource: arm_pl
dependencies:
- recipe:aws-parallelcluster-install::directories
- resource:package_repos
- resource:install_packages
- recipe:aws-parallelcluster-common::node_attributes
- name: dcv
run_list:
- recipe[aws-parallelcluster::add_dependencies]
- recipe[aws-parallelcluster-install::test_resource]
verifier:
controls:
- /^dcv/
attributes:
resource: dcv
dependencies:
- recipe:aws-parallelcluster-test::docker_mock
- recipe:aws-parallelcluster-install::directories
- recipe:aws-parallelcluster-common::node_attributes
cluster:
is_official_ami_build: true
driver:
instance_type: t3.medium