beaker-puppet 0.15.0 → 0.15.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: 63119970a4ff392282780bb13f92325528be91fb
4
- data.tar.gz: a57c6b56e7fcd890226b38a0f367fcf0e269f407
3
+ metadata.gz: b8255b145e80f781db25ff60741e1705eb3c7b3e
4
+ data.tar.gz: f4daaec756f930f3756124e3af7dca33ba965863
5
5
  SHA512:
6
- metadata.gz: 3b00a0f0dc0f07137892e1ec2bb9602705008a4cb2a9ea47791304656e33619b9f47c75f6da29560c0b402a0025cef09f80999f00eda882b534a7207f9c14a2f
7
- data.tar.gz: 513af1bbc7dc8b9398753aa5a3b3e5da7e6ace2e511a0c86885088a6529451272aabeef39b72f419c20adcdef7623e834be0ee606a7a957f793dc46ddd62668a
6
+ metadata.gz: 366e0bf4b1ef15dd623f8a7c76544ea4fc76195dd3a1b1eef9559e0ba190aedd95a05cf487ae74eddd492cb6f132abc0a056576d31dfd7ca31af96f224b9a1a0
7
+ data.tar.gz: 1a612e0bc6bb1181f9ee118e37aff99a95037df9b7da4976475874b0761d79e79ec177a2039d587c44bd54b2b107eff326ad079e7408cdc763bad15968a3b6b2
@@ -1035,6 +1035,11 @@ module Beaker
1035
1035
  end
1036
1036
  scp_to( host, repo, to_path )
1037
1037
 
1038
+ variant, version, arch, codename = host['platform'].to_array
1039
+ if variant =~ /^ubuntu$/ && version.split('.').first.to_i >= 18
1040
+ # Allow the use of unsigned repos with Ubuntu 18.04+
1041
+ on host, "echo 'Acquire::AllowInsecureRepositories \"true\";' > /etc/apt/apt.conf.d/90insecure"
1042
+ end
1038
1043
  on( host, 'apt-get update' ) if host['platform'] =~ /ubuntu-|debian-|cumulus-|huaweios-/
1039
1044
  nil
1040
1045
  end
@@ -1080,6 +1085,11 @@ module Beaker
1080
1085
  dev_builds_url = protocol + hostname
1081
1086
  dev_builds_url = opts[:dev_builds_url] if variant =~ /^(fedora|el|centos)$/
1082
1087
 
1088
+ if variant =~ /^ubuntu$/ && version.split('.').first.to_i >= 18
1089
+ # Allow the use of unsigned repos with Ubuntu 18.04+
1090
+ on host, "echo 'Acquire::AllowInsecureRepositories \"true\";' > /etc/apt/apt.conf.d/90insecure"
1091
+ end
1092
+
1083
1093
  install_repo_configs( host, dev_builds_url, package_name,
1084
1094
  build_version, platform_configs_dir )
1085
1095
 
@@ -1177,10 +1187,6 @@ module Beaker
1177
1187
  if arch== 's390x' || host['hypervisor'] == 'ec2'
1178
1188
  logger.trace("#install_puppet_agent_dev_repo_on: unsupported host #{host} for repo detected. using dev package")
1179
1189
  else
1180
- if variant =~ /^ubuntu$/ && version.split('.').first.to_i >= 18
1181
- # Allow the use of unsigned repos with Ubuntu 18.04+
1182
- on host, "echo 'Acquire::AllowInsecureRepositories \"true\";' > /etc/apt/apt.conf.d/90insecure"
1183
- end
1184
1190
  install_puppetlabs_dev_repo( host, 'puppet-agent', puppet_agent_version, nil, opts )
1185
1191
  host.install_package('puppet-agent')
1186
1192
  logger.trace("#install_puppet_agent_dev_repo_on: install_puppetlabs_dev_repo finished")
@@ -1,3 +1,3 @@
1
1
  module BeakerPuppet
2
- VERSION = '0.15.0'
2
+ VERSION = '0.15.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: 0.15.0
4
+ version: 0.15.1
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-03 00:00:00.000000000 Z
11
+ date: 2018-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec