File tree 3 files changed +4
-1
lines changed
cookbooks/aws-parallelcluster-slurm
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 15
15
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
16
16
# limitations under the License.
17
17
18
- return unless nvidia_installed?
18
+ return unless nvidia_enabled? || nvidia_installed?
19
19
return if pyxis_installed?
20
20
21
21
pyxis_version = node [ 'cluster' ] [ 'pyxis' ] [ 'version' ]
Original file line number Diff line number Diff line change 33
33
node . override [ 'cluster' ] [ 'pyxis' ] [ 'version' ] = pyxis_version
34
34
node . override [ 'cluster' ] [ 'pyxis' ] [ 'runtime_path' ] = pyxis_runtime_dir
35
35
end
36
+ allow_any_instance_of ( Object ) . to receive ( :nvidia_enabled? ) . and_return ( true )
36
37
allow_any_instance_of ( Object ) . to receive ( :nvidia_installed? ) . and_return ( true )
37
38
allow_any_instance_of ( Object ) . to receive ( :pyxis_installed? ) . and_return ( false )
38
39
runner . converge ( described_recipe )
93
94
runner = runner ( platform : platform , version : version ) do |_node |
94
95
RSpec ::Mocks . configuration . allow_message_expectations_on_nil = true
95
96
end
97
+ allow_any_instance_of ( Object ) . to receive ( :nvidia_enabled? ) . and_return ( true )
96
98
allow_any_instance_of ( Object ) . to receive ( :nvidia_installed? ) . and_return ( true )
97
99
allow_any_instance_of ( Object ) . to receive ( :pyxis_installed? ) . and_return ( true )
98
100
runner . converge ( described_recipe )
Original file line number Diff line number Diff line change 10
10
# See the License for the specific language governing permissions and limitations under the License.
11
11
12
12
control 'tag:install_pyxis_installed' do
13
+ only_if { [ 'yes' , true , 'true' ] . include? ( node [ 'cluster' ] [ 'nvidia' ] [ 'enabled' ] ) }
13
14
only_if { instance . nvidia_installed? }
14
15
15
16
title 'Checks Pyxis has been installed'
You can’t perform that action at this time.
0 commit comments