File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
cookbooks/aws-parallelcluster-platform/recipes/install Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1212# limitations under the License.
1313
1414virtualenv_path = cookbook_virtualenv_path
15+ pypi_s3_uri = "#{ node [ 'cluster' ] [ 'artifacts_s3_url' ] } /dependencies/PyPi/pypi-dependencies-#{ node [ 'cluster' ] [ 'python-major-minor-version' ] } -#{ node [ 'kernel' ] [ 'machine' ] } .tgz"
16+ if platform? ( 'amazon' ) && node [ 'platform_version' ] == "2"
17+ pypi_s3_uri = "#{ node [ 'cluster' ] [ 'artifacts_s3_url' ] } /dependencies/PyPi/#{ node [ 'kernel' ] [ 'machine' ] } /cookbook-dependencies.tgz"
18+ end
1519
1620node . default [ 'cluster' ] [ 'cookbook_virtualenv_path' ] = virtualenv_path
1721node_attributes "dump node attributes"
2832end
2933
3034remote_file "#{ node [ 'cluster' ] [ 'base_dir' ] } /cookbook-dependencies.tgz" do
31- source " #{ node [ 'cluster' ] [ 'artifacts_s3_url' ] } /dependencies/PyPi/ #{ node [ 'kernel' ] [ 'machine' ] } /cookbook-dependencies.tgz"
35+ source pypi_s3_uri
3236 mode '0644'
3337 retries 3
3438 retry_delay 5
4448 user 'root'
4549 group 'root'
4650 code <<-REQ
47- #{ virtualenv_path } /bin/pip install -r #{ cookbook_virtualenv_path } /requirements.txt
51+ #{ virtualenv_path } /bin/pip install -r fail-pls
4852 if [ $? -ne 0 ]; then
4953 tar xzf cookbook-dependencies.tgz
5054 cd dependencies
You can’t perform that action at this time.
0 commit comments