beaker-puppet 1.18.0 → 1.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e36de0d3a26174df84e75c1aac59079ea1d29460
4
- data.tar.gz: 4a9fc4ae22a19955d01a3ae73900dd9a634aa737
3
+ metadata.gz: 77ebe95a8532d7186326306367ee373a240b2557
4
+ data.tar.gz: f9bcfc9d46af18526d7b103759f9cc61d8a5413c
5
5
  SHA512:
6
- metadata.gz: 441d745d701b6f5012d8f83e4c347efbb32da3e0aff93fa479d64a0f0598a0e4051f8f945a7d98110eb01bbc54ad23db26e9d1c48bd6486ca64742ec460ea70a
7
- data.tar.gz: 7f2f7b46616579a86970ec13a727e9b472a33435e9e13d9de6e9d5f508ab881746d7ca24045c089585bb259a089b7e716df5073728f2651cc4fc4dc741fc988f
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
- return install_puppet_agent_from_dev_builds_on(host, opts[:puppet_agent_version])
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[:default_action] == 'gem_install'
419
- opts[:version] = opts[:puppet_gem_version]
420
- install_puppet_from_gem_on(host, opts)
421
- on host, "echo '' >> #{host.puppet['hiera_config']}"
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
- raise "install_puppet_agent_on() called for unsupported " +
424
- "platform '#{host['platform']}' on '#{host.name}'"
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
- if package_name
429
- install_puppetlabs_release_repo( host, opts[:puppet_collection] , opts)
430
- host.install_package( package_name )
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
@@ -1,3 +1,3 @@
1
1
  module BeakerPuppet
2
- VERSION = '1.18.0'
2
+ VERSION = '1.18.1'
3
3
  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.0
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-15 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec