In the file install.ps1 there is an external uri dependency to download 7zip, it needs to be made as an attribute, so that we can download it from any internally hosted location.
$7zaExe = Join-Path $tempDir '7za.exe'
$unzipMethod = '7zip'
$useWindowsCompression = $env:chocolateyUseWindowsCompression
if ($useWindowsCompression -ne $null -and $useWindowsCompression -eq 'true') {
Write-Output 'Using built-in compression to unzip'
$unzipMethod = 'builtin'
} elseif (-Not (Test-Path ($7zaExe))) {
Write-Output "Downloading 7-Zip commandline tool prior to extraction."
download 7zip
Also change the logic to use archive_file for Chef 15 and above...
if CHEF::VERSION.to_i >= 15
archive_file 'whatever'
else
include_recipe '7zip::default'
whatever 7zip resource
end