File tree Expand file tree Collapse file tree 2 files changed +34
-3
lines changed
test/resources/controls/aws_parallelcluster_config Expand file tree Collapse file tree 2 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,32 @@ suites:
26
26
resource : sticky_bits
27
27
- name : efa_configure_compute
28
28
run_list :
29
+ - recipe[aws-parallelcluster::add_dependencies]
29
30
- recipe[aws-parallelcluster-common::test_resource]
30
31
verifier :
31
32
controls :
32
33
- efa_debian_system_settings_configured
33
34
attributes :
34
35
resource : efa:configure
35
36
cluster :
36
- enable_efa : compute
37
+ enable_efa : efa
37
38
node_type : ComputeFleet
39
+ dependencies :
40
+ - recipe:aws-parallelcluster-common::node_attributes
41
+ - name : efa_configure_headnode
42
+ run_list :
43
+ - recipe[aws-parallelcluster::add_dependencies]
44
+ - recipe[aws-parallelcluster-common::test_resource]
45
+ verifier :
46
+ controls :
47
+ - efa_debian_system_settings_configured
48
+ attributes :
49
+ resource : efa:configure
50
+ cluster :
51
+ enable_efa : efa
52
+ node_type : HeadNode
53
+ dependencies :
54
+ - recipe:aws-parallelcluster-common::node_attributes
38
55
- name : efs_configure
39
56
run_list :
40
57
- recipe[aws-parallelcluster::add_dependencies]
@@ -131,4 +148,4 @@ suites:
131
148
nvidia :
132
149
enabled : true
133
150
driver :
134
- instance_type : g4dn.2xlarge
151
+ instance_type : g4dn.2xlarge
Original file line number Diff line number Diff line change 3
3
4
4
only_if { os . debian? && !os_properties . virtualized? }
5
5
6
+ ptrace_scope = instance . head_node? ? 1 : 0
7
+ if ptrace_scope == 1
8
+ describe 'Verify ptrace config file is not present' do
9
+ subject { file ( '/etc/sysctl.d/99-chef-kernel.yama.ptrace_scope.conf' ) }
10
+ it { should_not exist }
11
+ end
12
+ else
13
+ describe 'Verify ptrace config file is present' do
14
+ subject { file ( '/etc/sysctl.d/99-chef-kernel.yama.ptrace_scope.conf' ) }
15
+ it { should exist }
16
+ its ( 'content' ) { should match /kernel.yama.ptrace_scope = #{ ptrace_scope } / }
17
+ end
18
+ end
19
+
6
20
describe kernel_parameter ( 'kernel.yama.ptrace_scope' ) do
7
- its ( 'value' ) { should eq 0 }
21
+ its ( 'value' ) { should eq ptrace_scope }
8
22
end
9
23
end
You can’t perform that action at this time.
0 commit comments