Skip to content

Commit ac5a721

Browse files
committed
rhel8 efs adc
1 parent 3125cbc commit ac5a721

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

cookbooks/aws-parallelcluster-environment/resources/efs/efs_redhat8.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
use 'partial/_install_from_tar'
2323
use 'partial/_mount_umount'
2424

25-
property :efs_utils_version, String, default: '2.3.1'
26-
2725
def adc_install_script_code(efs_utils_tarball, efs_utils_package, efs_utils_version)
2826
<<-EFSUTILSINSTALL
2927
set -e

cookbooks/aws-parallelcluster-environment/resources/efs/partial/_install_from_tar.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
1414
# See the License for the specific language governing permissions and limitations under the License.
1515
package_name = "amazon-efs-utils"
16-
package_version = new_resource.efs_utils_version
17-
efs_utils_tarball = "#{node['cluster']['sources_dir']}/efs-utils-#{package_version}.tar.gz"
18-
efs_utils_url = "#{node['cluster']['artifacts_s3_url']}/dependencies/efs/v#{package_version}.tar.gz"
1916

2017
action :install_utils do
18+
package_version = new_resource.efs_utils_version
19+
efs_utils_tarball = "#{node['cluster']['sources_dir']}/efs-utils-#{package_version}.tar.gz"
20+
efs_utils_url = "#{node['cluster']['artifacts_s3_url']}/dependencies/efs/v#{package_version}.tar.gz"
21+
2122
package_repos 'update package repositories' do
2223
action :update
2324
end
@@ -60,6 +61,9 @@
6061
end
6162

6263
action :install_efs_utils do
64+
package_version = new_resource.efs_utils_version
65+
efs_utils_tarball = "#{node['cluster']['sources_dir']}/efs-utils-#{package_version}.tar.gz"
66+
6367
bash "install efs utils" do
6468
cwd node['cluster']['sources_dir']
6569
code install_script_code(efs_utils_tarball, package_name, package_version)

0 commit comments

Comments
 (0)