File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
cookbooks/aws-parallelcluster-environment/resources/efs Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2222use 'partial/_install_from_tar'
2323use 'partial/_mount_umount'
2424
25- property :efs_utils_version , String , default : '2.3.1'
26-
2725def adc_install_script_code ( efs_utils_tarball , efs_utils_package , efs_utils_version )
2826 <<-EFSUTILSINSTALL
2927 set -e
Original file line number Diff line number Diff line change 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.
1515package_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
2017action :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
6061end
6162
6263action :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 )
You can’t perform that action at this time.
0 commit comments