beaker_puppet_helpers 2.1.0 → 2.2.0
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/beaker_puppet_helpers.gemspec +1 -1
- data/lib/beaker_puppet_helpers/install_utils.rb +12 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96b07dc57cf6ef1d1321846d99f810b208ec187cae8fcbb9f9671a7cb00684d5
|
4
|
+
data.tar.gz: 71d45ebf93c52dd19cf097d828487148190ffe249a52ba44fdf0b369642d9347
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a513bb98b4908fa0563adc2afd8d1e187db0f3ae79de0871a62a5d4db13c35fe5ee8c792a5f8f14c3c3eb6104c4ed6c47e175b8318097359dfbc2293ebeb8c
|
7
|
+
data.tar.gz: cb55fb6ce9dc07741e88b30ea2e3497a24ecc1c5f34c31850609923b505f0d70c1cac195716489154ffbc6b5584f4fb949d4fa0a1e53f4f317f2c48b28108bf1
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [2.2.0](https://github.com/voxpupuli/beaker_puppet_helpers/tree/2.2.0) (2025-03-19)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/beaker_puppet_helpers/compare/2.1.0...2.2.0)
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- Support the none collection in implementation helpers [\#62](https://github.com/voxpupuli/beaker_puppet_helpers/pull/62) ([ekohl](https://github.com/ekohl))
|
12
|
+
|
5
13
|
## [2.1.0](https://github.com/voxpupuli/beaker_puppet_helpers/tree/2.1.0) (2025-03-19)
|
6
14
|
|
7
15
|
[Full Changelog](https://github.com/voxpupuli/beaker_puppet_helpers/compare/2.0.0...2.1.0)
|
@@ -27,7 +27,11 @@ module BeakerPuppetHelpers
|
|
27
27
|
# The used collection (puppet7, openvox8...)
|
28
28
|
# @return [String] the implementation
|
29
29
|
def self.implementation_from_collection(collection)
|
30
|
-
collection
|
30
|
+
if collection == 'none'
|
31
|
+
'puppet'
|
32
|
+
else
|
33
|
+
collection.gsub(/\d+/, '')
|
34
|
+
end
|
31
35
|
end
|
32
36
|
|
33
37
|
# Install official Puppet release repository configuration on host(s).
|
@@ -111,11 +115,14 @@ module BeakerPuppetHelpers
|
|
111
115
|
# @param [Beaker::Host] host
|
112
116
|
# The host to act on
|
113
117
|
# @param collection
|
114
|
-
# The used collection (puppet7, openvox8...)
|
115
|
-
# @param [Boolean] prefer_aio
|
116
|
-
# Whether to prefer AIO packages or OS packages
|
118
|
+
# The used collection (none, puppet7, openvox8, ...)
|
119
|
+
# @param [Optional[Boolean]] prefer_aio
|
120
|
+
# Whether to prefer AIO packages or OS packages. If not specified, it's
|
121
|
+
# derived from the collection
|
117
122
|
# @return [String] the package name
|
118
|
-
def self.collection2packagename(host, collection, prefer_aio:
|
123
|
+
def self.collection2packagename(host, collection, prefer_aio: nil)
|
124
|
+
prefer_aio = collection != 'none' if prefer_aio.nil?
|
125
|
+
|
119
126
|
implementation = implementation_from_collection(collection)
|
120
127
|
package_name(host, prefer_aio: prefer_aio, implementation: implementation)
|
121
128
|
end
|