Skip to content

Commit

Permalink
Add lego to chef deps
Browse files Browse the repository at this point in the history
Summary: TSIA, this is used for certs.

Test Plan: N/A

Reviewers: zasgar, michelle

Reviewed By: michelle

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

Differential Revision: https://phab.corp.pixielabs.ai/D9982

GitOrigin-RevId: 0d9042c
  • Loading branch information
vihangm authored and copybaranaut committed Oct 18, 2021
1 parent 66f7065 commit 37e4a74
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DOCKER_IMAGE_TAG=202110181135
DOCKER_IMAGE_TAG=202110181552
11 changes: 11 additions & 0 deletions tools/chef/cookbooks/pixielabs/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
default['golangci-lint'] = {}
default['helm'] = {}
default['opm'] = {}
default['lego'] = {}


if node[:platform] == 'ubuntu'
Expand Down Expand Up @@ -150,6 +151,11 @@
'https://github.com/fossas/fossa-cli/releases/download/v1.1.10/fossa-cli_1.1.10_linux_amd64.tar.gz'
default['fossa']['sha256'] =
'a263aabf09308614a39d8486df722f3b03ab5b0f5060b655be1fd9def8e5619f'

default['lego']['download_path'] =
'https://github.com/go-acme/lego/releases/download/v4.5.3/lego_v4.5.3_linux_amd64.tar.gz'
default['lego']['sha256'] =
'd6a6dbf82ae9a1a7f9fbc8d85c224617a17337afa4284aaca6b0556a7347609d'
elsif node[:platform] == 'mac_os_x'
default['bazel']['download_path'] =
'https://github.com/bazelbuild/bazel/releases/download/4.2.1/bazel-4.2.1-darwin-x86_64'
Expand Down Expand Up @@ -241,4 +247,9 @@
'https://github.com/fossas/fossa-cli/releases/download/v1.1.10/fossa-cli_1.1.10_darwin_amd64.tar.gz'
default['fossa']['sha256'] =
'39f23d382c63381ec98e0b22cbf60c2007bdb699b034bfd37692a062ba254a8d'

default['lego']['download_path'] =
'https://github.com/go-acme/lego/releases/download/v4.5.3/lego_v4.5.3_darwin_amd64.tar.gz'
default['lego']['sha256'] =
'eaf2792d9731c911da671a6145eebd5ba136c20446adb542e7b1463ffe868388'
end
14 changes: 14 additions & 0 deletions tools/chef/cookbooks/pixielabs/recipes/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,17 @@
file '/tmp/fossa.tar.gz' do
action :delete
end

remote_file '/tmp/lego.tar.gz' do
source node['lego']['download_path']
mode 0755
checksum node['lego']['sha256']
end

execute 'install lego' do
command 'tar xf /tmp/lego.tar.gz -C /opt/pixielabs/bin lego'
end

file '/tmp/lego.tar.gz' do
action :delete
end

0 comments on commit 37e4a74

Please sign in to comment.