Skip to content

Commit 2aaace1

Browse files
committed
test
1 parent 0ad5a96 commit 2aaace1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cookbooks/aws-parallelcluster-platform/recipes/install/cookbook_virtualenv.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
# limitations under the License.
1313

1414
virtualenv_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

1620
node.default['cluster']['cookbook_virtualenv_path'] = virtualenv_path
1721
node_attributes "dump node attributes"
@@ -28,7 +32,7 @@
2832
end
2933

3034
remote_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
@@ -44,7 +48,7 @@
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

0 commit comments

Comments
 (0)