Skip to content

Commit f78b136

Browse files
authored
Merge pull request #670 from mhashizume/PA-5266/main/prepare-digest
(PA-5266) Change checksum algorithm to SHA256
2 parents ffc0575 + c8c47cb commit f78b136

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

manifests/prepare/package.pp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@
2727
}
2828

2929
file { $local_package_file_path:
30-
ensure => file,
31-
owner => $puppet_agent::params::user,
32-
group => $puppet_agent::params::group,
33-
mode => $mode,
34-
source => $source,
35-
require => File[$puppet_agent::params::local_packages_dir],
36-
checksum => sha256lite,
30+
ensure => file,
31+
owner => $puppet_agent::params::user,
32+
group => $puppet_agent::params::group,
33+
mode => $mode,
34+
source => $source,
35+
require => File[$puppet_agent::params::local_packages_dir],
3736
}
3837
}

spec/classes/puppet_agent_osfamily_redhat_spec.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,13 @@
292292

293293
it {
294294
is_expected.to contain_file('/opt/puppetlabs/packages/puppet-agent-6.12.0.rpm')
295-
.with('path' => '/opt/puppetlabs/packages/puppet-agent-6.12.0.rpm')
296-
.with('ensure' => 'file')
297-
.with('owner' => '0')
298-
.with('group' => '0')
299-
.with('mode' => '0644')
300-
.with('source' => 'http://just-some-download/url:90/puppet-agent-6.12.0.rpm')
295+
.with('path' => '/opt/puppetlabs/packages/puppet-agent-6.12.0.rpm')
296+
.with('ensure' => 'file')
297+
.with('owner' => '0')
298+
.with('group' => '0')
299+
.with('mode' => '0644')
300+
.with('source' => 'http://just-some-download/url:90/puppet-agent-6.12.0.rpm')
301301
.that_requires('File[/opt/puppetlabs/packages]')
302-
.with('checksum' => 'sha256lite')
303302
}
304303

305304
it {

0 commit comments

Comments
 (0)