Skip to content

Commit ab36358

Browse files
committed
[Isolated] Only install efs-proxy-deps in adc
1 parent 4278843 commit ab36358

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
use 'partial/_get_package_version_rpm'
2020
use 'partial/_common'
21-
# use 'partial/_redhat_based'
22-
# use 'partial/_install_from_tar'
21+
use 'partial/_redhat_based'
22+
use 'partial/_install_from_tar'
2323
use 'partial/_mount_umount'
2424

2525
def adc_install_script_code(efs_utils_tarball, efs_utils_package, efs_utils_version)

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)