Skip to content

Commit

Permalink
(PA-5266) Change checksum algorithm to SHA256
Browse files Browse the repository at this point in the history
Prior to this commit, the puppet_agent::prepare::package class used the
sha256lite algorithm in the file resource for local installation
packages.

In certain circumstances (e.g. when a download is interrupted), this
checksum, which only checks the first N bytes, does not provide
sufficient information to determine if the file is actually there.

This commit updates the file resource to use the more complete sha256
algorithm to handle cases like this.
  • Loading branch information
mhashizume committed Sep 22, 2023
1 parent ffc0575 commit 32e82d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/prepare/package.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
mode => $mode,
source => $source,
require => File[$puppet_agent::params::local_packages_dir],
checksum => sha256lite,
checksum => sha256,
}
}

0 comments on commit 32e82d9

Please sign in to comment.