Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend tar_extract to extract from local file #55

Open
Bruce17 opened this issue Aug 2, 2019 · 0 comments
Open

Extend tar_extract to extract from local file #55

Bruce17 opened this issue Aug 2, 2019 · 0 comments

Comments

@Bruce17
Copy link

Bruce17 commented Aug 2, 2019

Hi,

we have a corporate proxy, so I provided the nexus package in our local Artifactory and adjusted the variable NEXUS_DOWNLOAD_URL. The download url is over https using a self signed corporate ssl certifacte. Internally the tar_extract is not able to either fetch the certificate from the local system nor to ignore the ssl certificate issue (skip ssl verify).

Therefore I used curl to download the nexus artifact and tried to feed it locally to tar_extract.

A solution can be to adjust tar_extract in download.rb file as following:

tar_extract node['nexus_repository_manager']['nexus_download_url'] do
  action :extract_local
  target_dir node['nexus_repository_manager']['nexus_home']['path']
  checksum node['nexus_repository_manager']['nexus_download_sha256']
  creates node['nexus_repository_manager']['nexus_home']['path'] + '/bin'
  tar_flags [ '-P', '--strip-components 1' ]
end

Adding action :extract_local hard coded is not optimal I know, but maybe there is a solution to pass the configuration via an environment variable as the other options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant