beaker_puppet_helpers 2.0.0 → 2.1.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 +9 -1
- data/beaker_puppet_helpers.gemspec +1 -1
- data/lib/beaker_puppet_helpers/install_utils.rb +28 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4d4e63615ac64312d0629aa6845bc1b48717317b9279918fbdb41f7f58cbb88
|
4
|
+
data.tar.gz: 38ccbc1d294f2d73616866d06c3d2cbf7101611998180d8ced901b61a98ce680
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94c853ad79f8c90f41aa0832db6eadaf75f92584d74412a95e326098d78e6ab4357de513c577e96c364d04138f90286bddd965712a78b9c4f2ab94118fa3b898
|
7
|
+
data.tar.gz: 264e3ce0e6394719acb3146248ea1868bce207499d5e45d6ae065a8134879e90b0af3839cadd57d75d62e493562cdbcc50bba87d08b473408987a7f0046b4410
|
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.1.0](https://github.com/voxpupuli/beaker_puppet_helpers/tree/2.1.0) (2025-03-19)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/beaker_puppet_helpers/compare/2.0.0...2.1.0)
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- Add helper to get agent package name based on collection [\#60](https://github.com/voxpupuli/beaker_puppet_helpers/pull/60) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
|
5
13
|
## [2.0.0](https://github.com/voxpupuli/beaker_puppet_helpers/tree/2.0.0) (2025-03-18)
|
6
14
|
|
7
15
|
[Full Changelog](https://github.com/voxpupuli/beaker_puppet_helpers/compare/1.6.0...2.0.0)
|
@@ -12,8 +20,8 @@ All notable changes to this project will be documented in this file.
|
|
12
20
|
|
13
21
|
**Implemented enhancements:**
|
14
22
|
|
15
|
-
- Implement OpenVox support [\#56](https://github.com/voxpupuli/beaker_puppet_helpers/pull/56) ([bastelfreak](https://github.com/bastelfreak))
|
16
23
|
- CI: Use voxpupuli/ruby-version@v1 / Add Ruby 3.4 support [\#58](https://github.com/voxpupuli/beaker_puppet_helpers/pull/58) ([bastelfreak](https://github.com/bastelfreak))
|
24
|
+
- Implement OpenVox support [\#56](https://github.com/voxpupuli/beaker_puppet_helpers/pull/56) ([bastelfreak](https://github.com/bastelfreak))
|
17
25
|
|
18
26
|
## [1.6.0](https://github.com/voxpupuli/beaker_puppet_helpers/tree/1.6.0) (2024-12-11)
|
19
27
|
|
@@ -21,6 +21,15 @@ module BeakerPuppetHelpers
|
|
21
21
|
},
|
22
22
|
}.freeze
|
23
23
|
|
24
|
+
# returns the used implementation (puppet or openvox)
|
25
|
+
#
|
26
|
+
# @param [String] collection
|
27
|
+
# The used collection (puppet7, openvox8...)
|
28
|
+
# @return [String] the implementation
|
29
|
+
def self.implementation_from_collection(collection)
|
30
|
+
collection.gsub(/\d+/, '')
|
31
|
+
end
|
32
|
+
|
24
33
|
# Install official Puppet release repository configuration on host(s).
|
25
34
|
#
|
26
35
|
# @example Install Puppet 7
|
@@ -38,8 +47,8 @@ module BeakerPuppetHelpers
|
|
38
47
|
# are no official Puppet releases for other platforms.
|
39
48
|
#
|
40
49
|
def self.install_puppet_release_repo_on(host, collection = 'puppet')
|
41
|
-
|
42
|
-
repos = REPOS[
|
50
|
+
implementation = implementation_from_collection(collection)
|
51
|
+
repos = REPOS[implementation.to_sym][:release]
|
43
52
|
|
44
53
|
variant, version, _arch = host['packaging_platform'].split('-', 3)
|
45
54
|
|
@@ -61,7 +70,7 @@ module BeakerPuppetHelpers
|
|
61
70
|
url = "#{repos[:yum]}/#{collection}-release-#{variant}-#{version}.noarch.rpm"
|
62
71
|
host.install_package(url)
|
63
72
|
when 'debian', 'ubuntu'
|
64
|
-
relname = (
|
73
|
+
relname = (implementation == 'openvox') ? "#{variant}#{version}" : host['platform'].codename
|
65
74
|
url = "#{repos[:apt]}/#{collection}-release-#{relname}.deb"
|
66
75
|
wget_on(host, url) do |filename|
|
67
76
|
host.install_package(filename)
|
@@ -75,13 +84,13 @@ module BeakerPuppetHelpers
|
|
75
84
|
end
|
76
85
|
end
|
77
86
|
|
78
|
-
# Determine
|
87
|
+
# Determine the correct package name, based on implementation, AIO and OS
|
79
88
|
#
|
80
89
|
# @param [Beaker::Host] host
|
81
90
|
# The host to act on
|
82
91
|
# @param [Boolean] prefer_aio
|
83
92
|
# Whether to prefer AIO packages or OS packages
|
84
|
-
# @param implementation
|
93
|
+
# @param [String] implementation
|
85
94
|
# If we are on OpenVox or Perforce
|
86
95
|
# @return [String] the package name
|
87
96
|
def self.package_name(host, prefer_aio: true, implementation: 'openvox')
|
@@ -97,6 +106,20 @@ module BeakerPuppetHelpers
|
|
97
106
|
end
|
98
107
|
end
|
99
108
|
|
109
|
+
# Determine if we need the Perforce or OpenVox Package, based on the collection
|
110
|
+
#
|
111
|
+
# @param [Beaker::Host] host
|
112
|
+
# The host to act on
|
113
|
+
# @param collection
|
114
|
+
# The used collection (puppet7, openvox8...)
|
115
|
+
# @param [Boolean] prefer_aio
|
116
|
+
# Whether to prefer AIO packages or OS packages
|
117
|
+
# @return [String] the package name
|
118
|
+
def self.collection2packagename(host, collection, prefer_aio: true)
|
119
|
+
implementation = implementation_from_collection(collection)
|
120
|
+
package_name(host, prefer_aio: prefer_aio, implementation: implementation)
|
121
|
+
end
|
122
|
+
|
100
123
|
# Determine the Puppet package name
|
101
124
|
#
|
102
125
|
# @param [Beaker::Host] host
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker_puppet_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-19 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: beaker
|