Skip to content

Commit

Permalink
feat: use remote files for binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Bellardia committed Jan 22, 2024
1 parent 324ac40 commit 793f5c3
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 29 deletions.
22 changes: 0 additions & 22 deletions base/files/default/berks

This file was deleted.

Binary file removed base/files/default/pgloader_amd64
Binary file not shown.
Binary file removed base/files/default/pgloader_arm64
Binary file not shown.
Binary file removed base/files/default/zephir.phar
Binary file not shown.
4 changes: 2 additions & 2 deletions base/recipes/berks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
notifies :create, "cookbook_file[berks]", :immediately
end

cookbook_file "berks" do
remote_file "berks" do
path "/opt/chef/embedded/bin/berks"
source "berks"
source "https://miscfile-staging.s3.amazonaws.com/chef/base/berks"
owner "root"
group "root"
mode "0775"
Expand Down
3 changes: 2 additions & 1 deletion base/recipes/phalcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
end

# Add Zephir Phar
cookbook_file "zephir.phar" do
remote_file "zephir.phar" do
path "/usr/local/bin/zephir"
source "https://miscfile-staging.s3.amazonaws.com/chef/base/zephir.phar"
mode "0755"
end

Expand Down
4 changes: 2 additions & 2 deletions base/recipes/timescale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
else "amd64"
end

cookbook_file "/usr/local/bin/pgloader" do
remote_file "/usr/local/bin/pgloader" do
mode "0755"
source "pgloader_#{arch}"
source "https://miscfile-staging.s3.amazonaws.com/chef/base/pgloader_#{arch}"
end
else
include_recipe cookbook_name + "::pgloader"
Expand Down
Binary file removed dnsmasq/files/default/dnsmasq-2.89-amd64-18.04
Binary file not shown.
Binary file removed dnsmasq/files/default/dnsmasq-2.89-amd64-20.04
Binary file not shown.
Binary file removed dnsmasq/files/default/dnsmasq-2.89-amd64-22.04
Binary file not shown.
Binary file removed dnsmasq/files/default/dnsmasq-2.89-arm64-18.04
Binary file not shown.
Binary file removed dnsmasq/files/default/dnsmasq-2.89-arm64-20.04
Binary file not shown.
Binary file removed dnsmasq/files/default/dnsmasq-2.89-arm64-22.04
Binary file not shown.
4 changes: 2 additions & 2 deletions dnsmasq/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
else "amd64"
end

cookbook_file "/usr/sbin/dnsmasq" do
remote_file "/usr/sbin/dnsmasq" do
mode "0755"
source "dnsmasq-#{node["dnsmasq"]["version"]}-#{arch}-#{node["lsb"]["release"]}"
source "https://miscfile-staging.s3.amazonaws.com/chef/dnsmasq/dnsmasq-#{node["dnsmasq"]["version"]}-#{arch}-#{node["lsb"]["release"]}"
atomic_update true
action :create
end
Expand Down

0 comments on commit 793f5c3

Please sign in to comment.