beaker-puppet 1.18.0 → 1.18.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 +4 -4
- data/lib/beaker-puppet/install_utils/foss_utils.rb +35 -35
- data/lib/beaker-puppet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77ebe95a8532d7186326306367ee373a240b2557
|
|
4
|
+
data.tar.gz: f9bcfc9d46af18526d7b103759f9cc61d8a5413c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b569d0795780967e3ea7429ad05c31e14ca389d67c750f31b9d693e46a46617f9f9738c3d3cc38f501cdf90d19b4f2dd077e491bebd48ce2a7bdfdc0e0d85073
|
|
7
|
+
data.tar.gz: 001f1315f8991e1fd4125a72ab400b5aa91828e1b6c09797a51008296d63963c9c0fd571adf8c7bcee51f6672e58686484f55c6ed216358f7799cc6b6061dc9c
|
|
@@ -389,45 +389,45 @@ module Beaker
|
|
|
389
389
|
|
|
390
390
|
# If inside the Puppet VPN, install from development builds.
|
|
391
391
|
if opts[:puppet_agent_version] && opts[:puppet_agent_version] != 'latest' && dev_builds_accessible_on?(host, opts[:dev_builds_url])
|
|
392
|
-
|
|
393
|
-
end
|
|
394
|
-
|
|
395
|
-
if opts[:puppet_agent_version] == 'latest'
|
|
396
|
-
opts[:puppet_collection] += '-nightly' unless opts[:puppet_collection].end_with? '-nightly'
|
|
397
|
-
|
|
398
|
-
# Since we have modified the collection, we don't want to pass `latest`
|
|
399
|
-
# in to `install_package` as the version. That'll fail. Instead, if
|
|
400
|
-
# we pass `nil`, `install_package` will just install the latest available
|
|
401
|
-
# package version from the enabled repo.
|
|
402
|
-
opts.delete(:puppet_agent_version)
|
|
403
|
-
opts.delete(:version)
|
|
404
|
-
end
|
|
405
|
-
|
|
406
|
-
case host['platform']
|
|
407
|
-
when /el-|redhat|fedora|sles|centos|cisco_/
|
|
408
|
-
package_name = 'puppet-agent'
|
|
409
|
-
package_name << "-#{opts[:puppet_agent_version]}" if opts[:puppet_agent_version]
|
|
410
|
-
when /debian|ubuntu|cumulus|huaweios/
|
|
411
|
-
package_name = 'puppet-agent'
|
|
412
|
-
package_name << "=#{opts[:puppet_agent_version]}-1#{host['platform'].codename}" if opts[:puppet_agent_version]
|
|
413
|
-
when /windows/
|
|
414
|
-
install_puppet_agent_from_msi_on(host, opts)
|
|
415
|
-
when /osx/
|
|
416
|
-
install_puppet_agent_from_dmg_on(host, opts)
|
|
392
|
+
install_puppet_agent_from_dev_builds_on(host, opts[:puppet_agent_version])
|
|
417
393
|
else
|
|
418
|
-
if opts[:
|
|
419
|
-
opts[:
|
|
420
|
-
|
|
421
|
-
|
|
394
|
+
if opts[:puppet_agent_version] == 'latest'
|
|
395
|
+
opts[:puppet_collection] += '-nightly' unless opts[:puppet_collection].end_with? '-nightly'
|
|
396
|
+
|
|
397
|
+
# Since we have modified the collection, we don't want to pass `latest`
|
|
398
|
+
# in to `install_package` as the version. That'll fail. Instead, if
|
|
399
|
+
# we pass `nil`, `install_package` will just install the latest available
|
|
400
|
+
# package version from the enabled repo.
|
|
401
|
+
opts.delete(:puppet_agent_version)
|
|
402
|
+
opts.delete(:version)
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
case host['platform']
|
|
406
|
+
when /el-|redhat|fedora|sles|centos|cisco_/
|
|
407
|
+
package_name = 'puppet-agent'
|
|
408
|
+
package_name << "-#{opts[:puppet_agent_version]}" if opts[:puppet_agent_version]
|
|
409
|
+
when /debian|ubuntu|cumulus|huaweios/
|
|
410
|
+
package_name = 'puppet-agent'
|
|
411
|
+
package_name << "=#{opts[:puppet_agent_version]}-1#{host['platform'].codename}" if opts[:puppet_agent_version]
|
|
412
|
+
when /windows/
|
|
413
|
+
install_puppet_agent_from_msi_on(host, opts)
|
|
414
|
+
when /osx/
|
|
415
|
+
install_puppet_agent_from_dmg_on(host, opts)
|
|
422
416
|
else
|
|
423
|
-
|
|
424
|
-
|
|
417
|
+
if opts[:default_action] == 'gem_install'
|
|
418
|
+
opts[:version] = opts[:puppet_gem_version]
|
|
419
|
+
install_puppet_from_gem_on(host, opts)
|
|
420
|
+
on host, "echo '' >> #{host.puppet['hiera_config']}"
|
|
421
|
+
else
|
|
422
|
+
raise "install_puppet_agent_on() called for unsupported " +
|
|
423
|
+
"platform '#{host['platform']}' on '#{host.name}'"
|
|
424
|
+
end
|
|
425
425
|
end
|
|
426
|
-
end
|
|
427
426
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
427
|
+
if package_name
|
|
428
|
+
install_puppetlabs_release_repo( host, opts[:puppet_collection] , opts)
|
|
429
|
+
host.install_package( package_name )
|
|
430
|
+
end
|
|
431
431
|
end
|
|
432
432
|
end
|
|
433
433
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-puppet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.18.
|
|
4
|
+
version: 1.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|