Skip to content

Commit f0ffe85

Browse files
EFS
Signed-off-by: Hanwen <[email protected]>
1 parent 0ffd1fd commit f0ffe85

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

cookbooks/aws-parallelcluster-install/recipes/base.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@
221221
# Install FSx options
222222
include_recipe "aws-parallelcluster-install::lustre"
223223

224+
# Install EFS Utils
225+
include_recipe "aws-parallelcluster-install::efs"
226+
224227
# Install the AWS cloudwatch agent
225228
include_recipe "aws-parallelcluster-install::cloudwatch_agent"
226229

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)