beaker_puppet_helpers 1.2.0 → 1.2.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecec587a641c9175b474f3f5862cce202097db3a13c6085e96e38b5795dbb42a
|
|
4
|
+
data.tar.gz: 0cda17558b4ccfd995d8747158460a7e9793739b1601bbc14a3265057445a3a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69df43481f5173128fffc205b27a9a7b91b73bc707986092b7626065e3072c1601b89addb7e8223417ecefbbc5525397a28d44dda4a60bf60c833c29a75e95cc
|
|
7
|
+
data.tar.gz: 76b71365c7c9821195f7e6c94b49924dc0a84612173fad6d2f057c86b952c1a6483e5bfe1d804aa6464408407fe47f87e7cc25041b2cdc0f88619772ba5495a6
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.2.1](https://github.com/voxpupuli/beaker_puppet_helpers/tree/1.2.1) (2024-01-08)
|
|
6
|
+
|
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/beaker_puppet_helpers/compare/1.2.0...1.2.1)
|
|
8
|
+
|
|
9
|
+
**Fixed bugs:**
|
|
10
|
+
|
|
11
|
+
- shell escape Puppet command options [\#40](https://github.com/voxpupuli/beaker_puppet_helpers/pull/40) ([ekohl](https://github.com/ekohl))
|
|
12
|
+
- FreeBSD has the Puppet major version in the package name [\#39](https://github.com/voxpupuli/beaker_puppet_helpers/pull/39) ([evgeni](https://github.com/evgeni))
|
|
13
|
+
|
|
5
14
|
## [1.2.0](https://github.com/voxpupuli/beaker_puppet_helpers/tree/1.2.0) (2023-10-17)
|
|
6
15
|
|
|
7
16
|
[Full Changelog](https://github.com/voxpupuli/beaker_puppet_helpers/compare/1.1.1...1.2.0)
|
|
@@ -84,7 +84,7 @@ module BeakerPuppetHelpers
|
|
|
84
84
|
when /el|fedora|sles|cisco_/
|
|
85
85
|
prefer_aio ? 'puppet-agent' : 'puppet'
|
|
86
86
|
when /freebsd/
|
|
87
|
-
'sysutils/
|
|
87
|
+
'sysutils/puppet8'
|
|
88
88
|
when 'ubuntu'
|
|
89
89
|
# 23.04 started to ship puppet-agent with puppet as a legacy package
|
|
90
90
|
prefer_aio || host['packaging_platform'].split('-', 3)[1].to_i >= 2304 ? 'puppet-agent' : 'puppet'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'shellwords'
|
|
3
4
|
require 'beaker/command'
|
|
4
5
|
require 'puppet/modulebuilder'
|
|
5
6
|
|
|
@@ -21,8 +22,8 @@ module BeakerPuppetHelpers
|
|
|
21
22
|
block_on hosts do |host|
|
|
22
23
|
puppet_opts = {}
|
|
23
24
|
puppet_opts.merge!(host[:default_module_install_opts]) if host[:default_module_install_opts]
|
|
24
|
-
puppet_opts[:version] = version if version
|
|
25
|
-
puppet_opts[:module_repository] = module_repository if module_repository
|
|
25
|
+
puppet_opts[:version] = Shellwords.escape(version) if version
|
|
26
|
+
puppet_opts[:module_repository] = Shellwords.escape(module_repository) if module_repository
|
|
26
27
|
|
|
27
28
|
on host, Beaker::PuppetCommand.new('module', ['install', module_name], puppet_opts)
|
|
28
29
|
end
|
|
@@ -37,6 +37,13 @@ describe BeakerPuppetHelpers::ModuleUtils do
|
|
|
37
37
|
dsl.install_puppet_module_via_pmt_on(host, 'test', '1.2.3')
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
it 'escapes the version parameter' do
|
|
41
|
+
expect(Beaker::PuppetCommand).to receive(:new).with('module', %w[install test], { version: '\\>\\=\\ 4.0\\ \\<\\ 6.0' }).once
|
|
42
|
+
expect(dsl).to receive(:on).with(host, anything).once
|
|
43
|
+
|
|
44
|
+
dsl.install_puppet_module_via_pmt_on(host, 'test', '>= 4.0 < 6.0')
|
|
45
|
+
end
|
|
46
|
+
|
|
40
47
|
it 'accepts the module_repository parameter' do
|
|
41
48
|
expect(Beaker::PuppetCommand).to receive(:new).with('module', %w[install test], { module_repository: 'http://forge.example.com' }).once
|
|
42
49
|
expect(dsl).to receive(:on).with(host, anything).once
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker_puppet_helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vox Pupuli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: beaker
|