beaker-puppet 0.15.1 → 0.15.2

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: b8255b145e80f781db25ff60741e1705eb3c7b3e
4
- data.tar.gz: f4daaec756f930f3756124e3af7dca33ba965863
3
+ metadata.gz: 025f9370e1244e63e10ab6629c1069289a801c11
4
+ data.tar.gz: 71d17c2a14d18f791ec4d1744e7973f7c0487016
5
5
  SHA512:
6
- metadata.gz: 366e0bf4b1ef15dd623f8a7c76544ea4fc76195dd3a1b1eef9559e0ba190aedd95a05cf487ae74eddd492cb6f132abc0a056576d31dfd7ca31af96f224b9a1a0
7
- data.tar.gz: 1a612e0bc6bb1181f9ee118e37aff99a95037df9b7da4976475874b0761d79e79ec177a2039d587c44bd54b2b107eff326ad079e7408cdc763bad15968a3b6b2
6
+ metadata.gz: 8f3acb63dacd5f6d3944c00d79ce8919c7cb74d9777421d657e72edf02496682cea0b635740a5597a11af62ee193bbd7231b4c865163e51b737bda7c97eb6146
7
+ data.tar.gz: 9c8f52ec56ef1498dc66cdc514c6733d046c268ca77525a326416a08f5246c51c2370ab75c0b15b9380ad13a96e91ac2ab5126765d934e4aefbf562a0ca019de
@@ -8,12 +8,16 @@ module Beaker
8
8
 
9
9
  #Here be the default download URLs
10
10
  FOSS_DEFAULT_DOWNLOAD_URLS = {
11
- :win_download_url => "http://downloads.puppetlabs.com/windows",
12
- :mac_download_url => "http://downloads.puppetlabs.com/mac",
13
- :pe_promoted_builds_url => "http://pm.puppetlabs.com",
14
- :release_apt_repo_url => "http://apt.puppetlabs.com",
15
- :release_yum_repo_url => "http://yum.puppetlabs.com",
16
- :dev_builds_url => "http://builds.delivery.puppetlabs.net",
11
+ :win_download_url => "http://downloads.puppetlabs.com/windows",
12
+ :mac_download_url => "http://downloads.puppetlabs.com/mac",
13
+ :pe_promoted_builds_url => "http://pm.puppetlabs.com",
14
+ :release_apt_repo_url => "http://apt.puppetlabs.com",
15
+ :release_yum_repo_url => "http://yum.puppetlabs.com",
16
+ :nightly_apt_repo_url => "http://nightlies.puppet.com/apt",
17
+ :nightly_yum_repo_url => "http://nightlies.puppet.com/yum",
18
+ :nightly_win_download_url => "http://nightlies.puppet.com/downloads/windows",
19
+ :nightly_mac_download_url => "http://nightlies.puppet.com/downloads/mac",
20
+ :dev_builds_url => "http://builds.delivery.puppetlabs.net",
17
21
  }
18
22
 
19
23
  #Here be the pathing and default values for FOSS installs
@@ -252,7 +252,7 @@ module Beaker
252
252
  # @return nil
253
253
  # @raise [StandardError] When encountering an unsupported platform by default, or if gem cannot be found when default_action => 'gem_install'
254
254
  # @raise [FailTest] When error occurs during the actual installation process
255
- def install_puppet_on(hosts, opts={})
255
+ def install_puppet_on(hosts, opts = options)
256
256
  opts = FOSS_DEFAULT_DOWNLOAD_URLS.merge(opts)
257
257
 
258
258
  # If version isn't specified assume the latest in the 3.x series
@@ -594,7 +594,12 @@ module Beaker
594
594
  # @api private
595
595
  def msi_link_path(host, opts)
596
596
  if opts[:puppet_collection] && opts[:puppet_collection].match(/puppet\d*/)
597
- link = "#{opts[:win_download_url]}/#{opts[:puppet_collection]}/#{host['dist']}.msi"
597
+ url = if opts[:puppet_collection].match(/-nightly$/)
598
+ opts[:nightly_win_download_url]
599
+ else
600
+ opts[:win_download_url]
601
+ end
602
+ link = "#{url}/#{opts[:puppet_collection]}/#{host['dist']}.msi"
598
603
  else
599
604
  link = "#{opts[:win_download_url]}/#{host['dist']}.msi"
600
605
  end
@@ -727,7 +732,12 @@ module Beaker
727
732
  variant, version, arch, codename = host['platform'].to_array
728
733
 
729
734
  if opts[:puppet_collection].match(/puppet\d*/)
730
- download_url = "#{opts[:mac_download_url]}/#{opts[:puppet_collection]}/#{version}/#{arch}"
735
+ url = if opts[:puppet_collection].match(/-nightly$/)
736
+ opts[:nightly_mac_download_url]
737
+ else
738
+ opts[:mac_download_url]
739
+ end
740
+ download_url = "#{url}/#{opts[:puppet_collection]}/#{version}/#{arch}"
731
741
  else
732
742
  download_url = "#{opts[:mac_download_url]}/#{version}/#{opts[:puppet_collection]}/#{arch}"
733
743
  end
@@ -942,8 +952,13 @@ module Beaker
942
952
  version = '7'
943
953
  end
944
954
  if repo_name.match(/puppet\d*/)
955
+ url = if repo_name.match(/-nightly$/)
956
+ opts[:nightly_yum_repo_url]
957
+ else
958
+ opts[:release_yum_repo_url]
959
+ end
945
960
  remote = "%s/%s/%s-release-%s-%s.noarch.rpm" %
946
- [opts[:release_yum_repo_url], repo_name, repo_name, variant_url_value, version]
961
+ [url, repo_name, repo_name, variant_url_value, version]
947
962
  else
948
963
  repo_name = '-' + repo_name unless repo_name.empty?
949
964
  remote = "%s/puppetlabs-release%s-%s-%s.noarch.rpm" %
@@ -973,8 +988,13 @@ module Beaker
973
988
 
974
989
  when /^(debian|ubuntu|cumulus|huaweios)$/
975
990
  if repo_name.match(/puppet\d*/)
991
+ url = if repo_name.match(/-nightly$/)
992
+ opts[:nightly_apt_repo_url]
993
+ else
994
+ opts[:release_apt_repo_url]
995
+ end
976
996
  remote = "%s/%s-release-%s.deb" %
977
- [opts[:release_apt_repo_url], repo_name, codename]
997
+ [url, repo_name, codename]
978
998
  else
979
999
  repo_name = '-' + repo_name unless repo_name.empty?
980
1000
  remote = "%s/puppetlabs-release%s-%s.deb" %
@@ -1,3 +1,3 @@
1
1
  module BeakerPuppet
2
- VERSION = '0.15.1'
2
+ VERSION = '0.15.2'
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: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2018-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec