diff --git a/cookbooks/aws-parallelcluster-platform/recipes/install/cookbook_virtualenv.rb b/cookbooks/aws-parallelcluster-platform/recipes/install/cookbook_virtualenv.rb index b4fb2bafd..02016eeb1 100644 --- a/cookbooks/aws-parallelcluster-platform/recipes/install/cookbook_virtualenv.rb +++ b/cookbooks/aws-parallelcluster-platform/recipes/install/cookbook_virtualenv.rb @@ -31,13 +31,13 @@ mode '0755' end -# remote_file "#{node['cluster']['base_dir']}/cookbook-dependencies.tgz" do -# source "https://d6csdolao8llw.cloudfront.net/archives/dependencies/PyPi/#{node['kernel']['machine']}/cookbook-dependencies.tgz" -# mode '0644' -# retries 3 -# retry_delay 5 -# action :create_if_missing -# end +remote_file "#{node['cluster']['base_dir']}/cookbook-dependencies.tgz" do + source "#{node['cluster']['artifacts_s3_url']}/dependencies/PyPi/#{node['kernel']['machine']}/cookbook-dependencies.tgz" + mode '0644' + retries 3 + retry_delay 5 + action :create_if_missing +end bash 'pip install' do user 'root' @@ -45,7 +45,6 @@ cwd "#{node['cluster']['base_dir']}" code <<-REQ set -e - aws s3 cp #{node['cluster']['artifacts_build_url']}/PyPi/#{node['kernel']['machine']}/cookbook-dependencies.tgz cookbook-dependencies.tgz --region #{node['cluster']['region']} tar xzf cookbook-dependencies.tgz cd dependencies #{virtualenv_path}/bin/pip install * -f ./ --no-index