File tree Expand file tree Collapse file tree 3 files changed +9
-13
lines changed
cookbooks/aws-parallelcluster-install/recipes Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ This file is used to list changes made in each version of the AWS ParallelCluste
663.2.1
77------
88
9- ** ENHANCEMENTS**
10- - Add support for AWS Trainium instances.
11-
129** CHANGES**
1310- Upgrade NVIDIA driver to version 470.141.03.
1411- Upgrade NVIDIA Fabric Manager to version 470.141.03.
Original file line number Diff line number Diff line change 1515# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
1616# limitations under the License.
1717
18- return if node [ 'cluster' ] [ 'base_os' ] == 'centos7' || arm_instance? || is_package_installed? ( "aws-neuronx-dkms" )
18+ return if node [ 'cluster' ] [ 'base_os' ] == 'centos7' || arm_instance? || neuron_installed?
1919
2020if platform? ( 'amazon' )
2121 # add neuron repository
Original file line number Diff line number Diff line change @@ -548,19 +548,18 @@ def efa_installed?
548548 dir_exist
549549end
550550
551- def is_package_installed? ( package_name )
551+ def neuron_installed?
552+ package_name = "aws-neuronx-dkms"
552553 command = value_for_platform (
553- %w( ubuntu debian ) => {
554- 'default' => "apt list --installed | grep #{ package_name } " ,
555- } ,
556- 'default' => "yum list installed | grep #{ package_name } "
557- )
554+ %w( ubuntu debian ) => {
555+ 'default' => "apt list --installed | grep #{ package_name } " ,
556+ } ,
557+ 'default' => "yum list installed | grep #{ package_name } " )
558558
559559 cmd = Mixlib ::ShellOut . new ( command , timeout : 60 )
560560 cmd . run_command
561- Chef ::Log . info ( "Checking if #{ package_name } is installed...\n #{ command } \n #{ cmd . stdout . strip } " )
562- # Convert return code to boolean
563- cmd . exitstatus . to_i . zero?
561+ # Return false if the package is not installed
562+ !( cmd . exitstatus != 0 )
564563end
565564
566565def is_neuron_instance?
You can’t perform that action at this time.
0 commit comments