beaker-puppet 1.16.0 → 1.17.0

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: f195bb6d82d2cf6a4cb6ff976c15df17f54b3e0f
4
- data.tar.gz: 00e7a6b8fd9a31a78d545f88bbe912980be3d0e9
3
+ metadata.gz: 59253ab3e53433cc50aa11fce2564472db5e2293
4
+ data.tar.gz: df4b8cecf947cb8bd9681ca6cd2ece5225a6882c
5
5
  SHA512:
6
- metadata.gz: ea339a35f641981d7e9d4ad068a6cde85440f9e89402ecbd9b3410bf6d51bd76e2ff5d611eb31d5fd852f4635051a0d153cb33f882b008f5bb8d19de2f12ca13
7
- data.tar.gz: cae6d89f572103b163d308a38948cea7dfb4b96467e4df93eb1b676ff83db440bf6ef51c39596a6badac38fdf2703f27d0f66a2e7cdf6a0a466c0545fa6b54a3
6
+ metadata.gz: 53bc876e2ac0677b22c564b163affc710c23b5ce27907e26354eaaa2d9c71b9f93dd9306a946b92d41de952f878985e6bb6a9618c6fe98326f626f3a93acbbbb
7
+ data.tar.gz: 2828b53c02ca4c9111d06581c370e34dd985e0cd0080004be9e4f163f8d90b3d75758593c411f42c67d7811e4652de1e3ed9110b88777f8c313b6324a18a8711
@@ -2,10 +2,12 @@ require 'beaker-puppet'
2
2
 
3
3
  # the version is required on windows
4
4
  # all versions are required for osx
5
- install_puppet({
6
- :version => ENV['BEAKER_PUPPET_VERSION'] || '4.8.0',
7
- :puppet_agent_version => ENV['BEAKER_PUPPET_AGENT_VERSION'] || '1.8.0'
8
- })
5
+ hosts.each do |host|
6
+ install_puppet_on(host, {
7
+ :version => ENV['BEAKER_PUPPET_VERSION'] || '5.5.13',
8
+ :puppet_agent_version => ENV['BEAKER_PUPPET_AGENT_VERSION'] || '5.5.13'
9
+ })
9
10
 
10
- on(master, puppet('resource user puppet ensure=present'))
11
- on(master, puppet('resource group puppet ensure=present'))
11
+ on(host, puppet('resource user puppet ensure=present'))
12
+ on(host, puppet('resource group puppet ensure=present'))
13
+ end
@@ -401,7 +401,7 @@ module Beaker
401
401
  end
402
402
 
403
403
  if package_name
404
- install_puppetlabs_release_repo( host, opts[:puppet_collection] )
404
+ install_puppetlabs_release_repo( host, opts[:puppet_collection] , opts)
405
405
  host.install_package( package_name )
406
406
  end
407
407
  end
@@ -1089,8 +1089,9 @@ module Beaker
1089
1089
  scp_to( host, repo, to_path )
1090
1090
 
1091
1091
  variant, version, arch, codename = host['platform'].to_array
1092
- if variant =~ /^ubuntu$/ && version.split('.').first.to_i >= 18
1093
- # Allow the use of unsigned repos with Ubuntu 18.04+
1092
+ if (variant =~ /^ubuntu$/ && version.split('.').first.to_i >= 18) ||
1093
+ (variant =~ /^debian$/ && version.split('.').first.to_i >= 10)
1094
+ # Allow the use of unsigned repos with Ubuntu 18.04+ and for Debian 10 +
1094
1095
  on host, "echo 'Acquire::AllowInsecureRepositories \"true\";' > /etc/apt/apt.conf.d/90insecure"
1095
1096
  end
1096
1097
  on( host, 'apt-get update' ) if host['platform'] =~ /ubuntu-|debian-|cumulus-|huaweios-/
@@ -16,7 +16,7 @@ module Beaker
16
16
  # The directories in the module directory that will not be scp-ed to the test system when using
17
17
  # `copy_module_to`
18
18
  PUPPET_MODULE_INSTALL_IGNORE = ['.bundle', '.git', '.idea', '.vagrant', '.vendor', 'vendor', 'acceptance',
19
- 'bundle', 'spec', 'tests', 'log', '.svn', 'junit', 'pkg', 'example']
19
+ 'bundle', 'spec', 'tests', 'log', '.svn', 'junit', 'pkg', 'example', 'tmp']
20
20
 
21
21
  # Install the desired module on all hosts using either the PMT or a
22
22
  # staging forge
@@ -1,3 +1,3 @@
1
1
  module BeakerPuppet
2
- VERSION = '1.16.0'
2
+ VERSION = '1.17.0'
3
3
  end
@@ -1,10 +1,23 @@
1
1
  test_name "Install Packages" do
2
2
 
3
3
  dev_builds_url = ENV['DEV_BUILDS_URL'] || 'http://builds.delivery.puppetlabs.net'
4
+ nightly_builds_url = ENV['NIGHTLY_BUILDS_URL'] || 'http://nightlies.puppet.com'
5
+
6
+ sha = ENV['SHA']
7
+ release_stream = ENV['RELEASE_STREAM'] || 'puppet'
4
8
 
5
9
  step "Install puppet-agent..." do
6
- sha = ENV['SHA']
7
- install_from_build_data_url('puppet-agent', "#{dev_builds_url}/puppet-agent/#{sha}/artifacts/#{sha}.yaml", hosts)
10
+ # If SHA='latest', then we're installing from nightlies
11
+ if sha == 'latest'
12
+ opts = {
13
+ :release_yum_repo_url => nightly_builds_url + '/yum',
14
+ :release_apt_repo_url => nightly_builds_url + '/apt',
15
+ :puppet_collection => "#{release_stream}-nightly"
16
+ }
17
+ install_puppet_agent_on(hosts, opts)
18
+ else
19
+ install_from_build_data_url('puppet-agent', "#{dev_builds_url}/puppet-agent/#{sha}/artifacts/#{sha}.yaml", hosts)
20
+ end
8
21
  end
9
22
 
10
23
  # make sure install is sane, beaker has already added puppet and ruby
@@ -88,10 +88,6 @@ step "Unpack puppet-runtime" do
88
88
 
89
89
  agents.each do |host|
90
90
 
91
- # If we're running on an agent, assume the user has set an image that
92
- # already contains everything we would get from the runtime tarball.
93
- next if host[:hypervisor] == 'docker'
94
-
95
91
  platform_tag = host['packaging_platform']
96
92
  if platform_tag =~ /windows/
97
93
  # the windows version is hard coded to `2012r2`. Unfortunately,
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.16.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-29 00:00:00.000000000 Z
11
+ date: 2019-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec