Skip to content

Commit

Permalink
Get cookbook deps from https
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Jun 26, 2024
1 parent 5148aec commit fa790fd
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,20 @@
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'
group 'root'
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
Expand Down

0 comments on commit fa790fd

Please sign in to comment.