beaker-pe 3.6.9 → 3.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bf28b377830e292e4f4e31e158fe194f05efc02863763561459208baa67249e
4
- data.tar.gz: b00ca47f6d3868058015566c13681cb49d9b399be2a398f2dad3568ebb5129d2
3
+ metadata.gz: e9e801f6873a3ffac7ca895055bb548f263a0df1f5e2f98203afe4e6aa2128c6
4
+ data.tar.gz: 2c8710970b09324ab563bacca5ed24ef64b670a68d039050792e9ff3d616773e
5
5
  SHA512:
6
- metadata.gz: 4b340f0b9833a7536dad2a862d0eb85c400c2c1fcc83aa6ee5549a6dbd3490a73cd0c3dc2fd14b89d0c80487a3bf377a84dcb5f11c35e62dc293adc960385991
7
- data.tar.gz: 2ea95782b9ade1c357ac4d7a262da2eb4ee0bacb222300a445bac274cef9dd7570a2c761e6fe65c9dd9cb399820cf117ee73e9850df66632c5ad474f6739a1b3
6
+ metadata.gz: 62b396853cb2602f1bf6267341a190ea9e9a80d438d7d5694f1e3df1ba22585e4c64702f244f1714c91508f3876bb9e16f52703d196ae0518337a43006e6d929
7
+ data.tar.gz: db71aeff009c49aef8b5b6e4d6695834e3738a6804175edea98da6026d251166a2d3e658192c7c22ff969e8a622557e6f5ddd8f2188a1001cf5e38606a5b2687
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.6.10](https://github.com/puppetlabs/beaker-pe/tree/3.6.10) (2026-10-22)
4
+
5
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.9...3.6.10)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - \(maint\) Remove the PE tarball after unpacking it on unix hosts [\#318](https://github.com/puppetlabs/beaker-pe/pull/318) ([steveax](https://github.com/steveax))
10
+
3
11
  ## [3.6.9](https://github.com/puppetlabs/beaker-pe/tree/3.6.9) (2026-10-20)
4
12
 
5
13
  [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.8...3.6.9)
@@ -463,7 +463,8 @@ NOASK
463
463
  end
464
464
 
465
465
  #Determine the PE package to download/upload on a unix style host, download/upload that package onto the host
466
- #and unpack it.
466
+ #and unpack it. The archive is removed once it unpacks: nothing reads it afterwards, and on platforms whose
467
+ #/tmp is a RAM-backed tmpfs (ubuntu 26.04) it otherwise holds ~1 GB of memory for the life of the host.
467
468
  # @param [Host] host The unix style host to download/upload and unpack PE onto
468
469
  # @param [Hash{Symbol=>Symbol, String}] opts The options
469
470
  # @option opts [String] :pe_dir Default directory or URL to pull PE package from
@@ -487,7 +488,7 @@ NOASK
487
488
  gpg_key_overwrite(host, 'tarball')
488
489
  end
489
490
  if extension =~ /tar/
490
- on host, "cd #{host['working_dir']}; tar -xvf #{filename}.tar"
491
+ on host, "cd #{host['working_dir']}; tar -xvf #{filename}.tar && rm -f #{filename}.tar"
491
492
  gpg_key_overwrite(host, 'tarball')
492
493
  end
493
494
  else
@@ -518,7 +519,7 @@ NOASK
518
519
  }
519
520
  fetch_tarball_command = "cd #{host['working_dir']}; #{command_file_push}#{filename}#{extension}"
520
521
  retry_on(host, fetch_tarball_command, retry_requirements)
521
- on host, "cd #{host['working_dir']}; tar -xvf #{filename}#{extension}"
522
+ on host, "cd #{host['working_dir']}; tar -xvf #{filename}#{extension} && rm -f #{filename}#{extension}"
522
523
 
523
524
  gpg_key_overwrite(host, 'tarball')
524
525
  end
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '3.6.9'
6
+ STRING = '3.6.10'
7
7
  end
8
8
 
9
9
  end
@@ -1278,7 +1278,7 @@ describe ClassMixedWithDSLInstallUtils do
1278
1278
  extension = '.tar.gz'
1279
1279
  expect( subject ).to receive( :scp_to ).with( unixhost, "#{ path }/#{ filename }#{ extension }", "#{ unixhost['working_dir'] }/#{ filename }#{ extension }" ).once
1280
1280
  expect( subject ).to receive( :on ).with( unixhost, /gunzip/ ).once
1281
- expect( subject ).to receive( :on ).with( unixhost, /tar -xvf/ ).once
1281
+ expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; tar -xvf #{ filename }.tar && rm -f #{ filename }.tar" ).once
1282
1282
  subject.fetch_pe( [unixhost], {} )
1283
1283
  end
1284
1284
 
@@ -1296,6 +1296,9 @@ describe ClassMixedWithDSLInstallUtils do
1296
1296
  expect( subject )
1297
1297
  .to receive( :on )
1298
1298
  .with( unixhost, "cd #{ unixhost['working_dir'] }; curl --fail --location --output #{ filename }#{ extension } #{ path }/#{ filename }#{ extension }", anything ).once
1299
+ expect( subject )
1300
+ .to receive( :on )
1301
+ .with( unixhost, "cd #{ unixhost['working_dir'] }; tar -xvf #{ filename }#{ extension } && rm -f #{ filename }#{ extension }" ).once
1299
1302
  subject.fetch_pe( [unixhost], {} )
1300
1303
  end
1301
1304
 
@@ -1333,6 +1336,9 @@ describe ClassMixedWithDSLInstallUtils do
1333
1336
  expect( subject )
1334
1337
  .to receive( :on )
1335
1338
  .with( unixhost, "cd #{ unixhost['working_dir'] }; curl --fail --location --output #{ filename }#{ extension } #{ path }/#{ filename }#{ extension }", anything ).once
1339
+ expect( subject )
1340
+ .to receive( :on )
1341
+ .with( unixhost, "cd #{ unixhost['working_dir'] }; tar -xvf #{ filename }#{ extension } && rm -f #{ filename }#{ extension }" ).once
1336
1342
  subject.fetch_pe( [unixhost], {} )
1337
1343
  end
1338
1344
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-pe
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.9
4
+ version: 3.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs