File tree 2 files changed +46
-0
lines changed
cookbooks/aws-parallelcluster-install/recipes
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 221
221
# Install FSx options
222
222
include_recipe "aws-parallelcluster-install::lustre"
223
223
224
+ # Install EFS Utils
225
+ include_recipe "aws-parallelcluster-install::efs"
226
+
224
227
# Install the AWS cloudwatch agent
225
228
include_recipe "aws-parallelcluster-install::cloudwatch_agent"
226
229
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Cookbook:: aws-parallelcluster
5
+ # Recipe:: efs
6
+ #
7
+ # Copyright:: 2013-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
8
+ #
9
+ # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
10
+ # License. A copy of the License is located at
11
+ #
12
+ # http://aws.amazon.com/apache2.0/
13
+ #
14
+ # or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
15
+ # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+
18
+ case node [ 'platform' ]
19
+ when 'amazon'
20
+ package 'amazon-efs-utils'
21
+ when 'centos'
22
+ bash "install efs utils" do
23
+ cwd node [ 'cluster' ] [ 'sources_dir' ]
24
+ code <<-EFSUTILSINSTALL
25
+ set -e
26
+ git clone https://github.com/aws/efs-utils
27
+ cd efs-utils
28
+ make rpm
29
+ yum -y install ./build/amazon-efs-utils*rpm
30
+ EFSUTILSINSTALL
31
+ end
32
+ when 'ubuntu'
33
+ bash "install efs utils" do
34
+ cwd node [ 'cluster' ] [ 'sources_dir' ]
35
+ code <<-EFSUTILSINSTALL
36
+ set -e
37
+ git clone https://github.com/aws/efs-utils
38
+ cd efs-utils
39
+ ./build-deb.sh
40
+ apt-get -y install ./build/amazon-efs-utils*deb
41
+ EFSUTILSINSTALL
42
+ end
43
+ end
You can’t perform that action at this time.
0 commit comments