Open deric opened 1 year ago
I notice the same behavior: the archive doesn't check the checksum before extracting the files.
Puppet version: 8.2.0 Archive module: 7.0.0 Ubuntu 22.04
# Download file
archive { $archive_name:
path => $path,
username => $user,
password => $password,
source => $source,
extract => true,
checksum_type => $checksum_type,
checksum => $checksum,
extract_path => $install_path,
creates => "${install_path}/${creates}",
cleanup => false,
} # Download File
I'm trying to ensure specific version when being installed from an tar archive. However the installation is performed only when the binary is missing.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
sha256sum
doesn't match expected sumWhat behaviour did you expect instead
I'm expecting the binary to match the provided checksum
It would be nice to have possibility to specify the checksum of the target binary instead. But none of the checksum doesn't seems to be checked when
creates => ['/usr/bin/k9s']
exists.