beaker-pe 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDBkN2I5YmEyZDQ5MGE0ZTllZDEwNjgzNDkxYmRkYjc1NzhlMzg5Zg==
4
+ NGY2NDk1YjBkNjNhNTgxNzMxMmUzNzdmODQwZWVmMzJlZWJkYWQ5Ng==
5
5
  data.tar.gz: !binary |-
6
- YTBlMzlhYjRiNjcyNTEwNTY0ZDc3ZjQxMzY0NTZlZTA5ZTZmNDU1MQ==
6
+ MmY3YWU0M2E5YzUyMGU0ZjU1MDc5ZWIwODRhYzc5ZWI4ODZmZTIwNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTdkNWE5NGQxNDNlYzRjMWI4N2Q3ODM0ZWUwYzY5NWM0M2VlZTAzMGVlZTBl
10
- OTc3MTUwYjc5MzU3Zjc2NmNlMmFmOTg3Y2I4NjhjZDQxYTFmZjIzNjk5ZWQx
11
- ZGY2MjU1ZGU2NmRjNjhhOThhNWE0YWQzNTRjNWVlZDE0YjUzZDM=
9
+ NmRmN2FkYjg2MTk0NTVhMWY4Yjk4YTYwN2UyYTI4NzEwYmRmYzVhNDg5MmIy
10
+ MTE3NjlmOGI3ODBkZTg1YTdmMjFmNmJiMjg5NDgxOTBkOWNlZmMzODAwMzZl
11
+ NmQwNmIzYWZjODMyMjg1Y2M0ZTUxM2FmYjczYWNiMGM0YTc0ZTg=
12
12
  data.tar.gz: !binary |-
13
- NDAzYTVlM2QyNzYwZDFkMTJlNjI1OWNiMThjZTQwYmY0MDg2ODFjMTEwNDlm
14
- ZDcyNzVmZTE2MWYyNTNlNTllMWZlMGIzZjQxMzFmZjliNWM1YjhmYjMwMTRk
15
- NzQ3OGYwODYwYzgxZTI3MmY0NTVkMDFlOTk0MDgxY2M0Nzk1MDU=
13
+ NmI2ODYyOTE0ZDkyNTQ3Y2MxODYxOGQ4ZmVjMTRjODgwOWM0M2U1MTI1OTJh
14
+ NDFkYmNlMjliNGJmNTVmNGUzZTVhZDgyNTVlMTQwNTA1ZDgyZTNmYjVmN2Mx
15
+ YTg5OThhMGZjMWNhMDQyNDJlNTliYjhjOGMyM2FiYzRmNDM3NGU=
@@ -507,7 +507,9 @@ module Beaker
507
507
  fetch_pe([master], opts)
508
508
  prepare_host_installer_options(master)
509
509
  generate_installer_conf_file_for(master, [master], opts)
510
- on master, installer_cmd(master, opts)
510
+ step "Install PE on master" do
511
+ on master, installer_cmd(master, opts)
512
+ end
511
513
 
512
514
  step "Setup frictionless installer on the master" do
513
515
  agents.each do |agent|
@@ -98,6 +98,7 @@ module Beaker
98
98
  )
99
99
 
100
100
  scp_to host, list, '/etc/apt/sources.list.d'
101
+ create_remote_file(host, "/etc/apt/apt.conf.d/99trust-all", 'APT::Get::AllowUnauthenticated "true";')
101
102
  on host, 'apt-get update'
102
103
  else
103
104
  host.logger.notify("No repository installation step for #{platform} yet...")
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '1.21.0'
6
+ STRING = '1.22.0'
7
7
  end
8
8
 
9
9
  end
@@ -200,17 +200,17 @@ describe ClassMixedWithDSLInstallUtils do
200
200
  end
201
201
 
202
202
  it 'generates a unix PE frictionless install command without cert verification' do
203
- expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq("export FRICTIONLESS_TRACE=true; cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash install.bash")
203
+ expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq("FRICTIONLESS_TRACE='true'; export FRICTIONLESS_TRACE; cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash install.bash")
204
204
  end
205
205
 
206
206
  it 'generates a unix PE frictionless install command with cert verification' do
207
207
  host['use_puppet_ca_cert'] = true
208
- expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq("export FRICTIONLESS_TRACE=true; cd /tmp && curl --tlsv1 -O --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem https://testmaster:8140/packages/current/install.bash && bash install.bash")
208
+ expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq("FRICTIONLESS_TRACE='true'; export FRICTIONLESS_TRACE; cd /tmp && curl --tlsv1 -O --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem https://testmaster:8140/packages/current/install.bash && bash install.bash")
209
209
  end
210
210
 
211
211
  it 'generates a unix PE frictionless install command without cert verification on aix' do
212
212
  host['platform'] = 'aix-61-power'
213
- expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq("export FRICTIONLESS_TRACE=true; cd /tmp && curl --tlsv1 -O https://testmaster:8140/packages/current/install.bash && bash install.bash")
213
+ expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq("FRICTIONLESS_TRACE='true'; export FRICTIONLESS_TRACE; cd /tmp && curl --tlsv1 -O https://testmaster:8140/packages/current/install.bash && bash install.bash")
214
214
  end
215
215
 
216
216
  it 'generates a PS1 frictionless install command for windows' do
@@ -259,7 +259,7 @@ describe ClassMixedWithDSLInstallUtils do
259
259
  the_host['pe_ver'] = '3.8.0'
260
260
  the_host['pe_installer'] = 'puppet-enterprise-installer'
261
261
  the_host['roles'] = ['frictionless']
262
- expect( subject.installer_cmd( the_host, {} ) ).to be === "export FRICTIONLESS_TRACE=true; cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash install.bash"
262
+ expect( subject.installer_cmd( the_host, {} ) ).to be === "FRICTIONLESS_TRACE='true'; export FRICTIONLESS_TRACE; cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash install.bash"
263
263
  end
264
264
 
265
265
  it 'generates a unix PE frictionless install command for a unix host with role "frictionless" and "frictionless_options"' do
@@ -269,7 +269,7 @@ describe ClassMixedWithDSLInstallUtils do
269
269
  the_host['pe_installer'] = 'puppet-enterprise-installer'
270
270
  the_host['roles'] = ['frictionless']
271
271
  the_host['frictionless_options'] = { 'main' => { 'dns_alt_names' => 'puppet' } }
272
- expect( subject.installer_cmd( the_host, {} ) ).to be === "export FRICTIONLESS_TRACE=true; cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash install.bash main:dns_alt_names=puppet"
272
+ expect( subject.installer_cmd( the_host, {} ) ).to be === "FRICTIONLESS_TRACE='true'; export FRICTIONLESS_TRACE; cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash install.bash main:dns_alt_names=puppet"
273
273
  end
274
274
 
275
275
  it 'generates a osx PE install command for a osx host' do
@@ -306,7 +306,7 @@ describe ClassMixedWithDSLInstallUtils do
306
306
  the_host['pe_installer'] = 'puppet-enterprise-installer'
307
307
  the_host['roles'] = ['frictionless']
308
308
  the_host[:pe_debug] = true
309
- expect( subject.installer_cmd( the_host, {} ) ).to be === "export FRICTIONLESS_TRACE=true; cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash -x install.bash"
309
+ expect( subject.installer_cmd( the_host, {} ) ).to be === "FRICTIONLESS_TRACE='true'; export FRICTIONLESS_TRACE; cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash -x install.bash"
310
310
  end
311
311
  end
312
312
 
@@ -2,6 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  class ClassPEClientToolsMixedWithPatterns
4
4
  include Beaker::DSL::InstallUtils::PEClientTools
5
+ include Beaker::DSL::Helpers::HostHelpers
5
6
  include Beaker::DSL::Patterns
6
7
  end
7
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-pe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-13 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec