beaker-pe 1.6.0 → 1.6.1

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
- MzM1MzU5ODE2MzczZmI2YjY1NDcxZWZjNjVmMzY0ZmYwMzU4MmM4NA==
4
+ ZTA3NWI0NmU2ZjExNGQ5OTk2MWQxZDYxYTJiMzU1MjI1OWYxMjhmNw==
5
5
  data.tar.gz: !binary |-
6
- MDdhOTQ0YjUyMmIzZjMzNmQ3OGIwZjRiZTE5MWNkODM1N2NkMDQxMQ==
6
+ YjBmZTAyNDc5ZjRlNjk1M2RhMjcxYmQ1Y2Q4ZmM3MWVhODZlNGY0MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2Q4MDJmYmUyNjFiYWQ2NjZhMDFjZGExNDAwMWFiOGFmM2RlZTczYmMzOGM0
10
- MzMzMWEzMDkwNDYwNWUxNjI2MzNmZjk3OWE4MDBlYWJmYWI1MGM3YzY1Zjk5
11
- ZDk1NmViOGIwMzI1OWNhMDZhYzg4ZGEyZDRhMjE0YTIwMTdiMjk=
9
+ ZDY5N2JhNmVmZjE2ZmFiNTNmOTk5MzBiNjlhY2QwYzgyZmNmZDk3ZWYwNTM5
10
+ OTU0ZmM3MGE5NThhNTFjMTQwYjUzMDM3MTI1MmFkNjUzMzA0ZDJhZTkyMjAy
11
+ Y2RiZGQ0Zjk3YjZkMTc5ZjY2NDJiZjIxOWQ5ODRkNWM2OGFjMjU=
12
12
  data.tar.gz: !binary |-
13
- YmM5NmY0Nzk3NjQzNDU2MmZmMGRlMzFmOTk1YWU0MmY4NzliMTU4YTRlZTJi
14
- YmFlYzI0MTk1ZTBmYTNiZGQxOGViMWFjNjUyZGI4MGU2MzgzYjkyZGYzOWI3
15
- MWEwMzQ1ZGJmNWMwMmZlOGRlZTNmOWUzM2M5NWIzYzZkMGU3MDE=
13
+ NmJhMDhmZmRhZTA3MzczNDRjYzA5YjExMDc4MDcxMjQwY2NmM2NjNWZhNjRj
14
+ ZWYxMjYwMDUxNDA3OTcwZWE4NTlkYmIzNDg1YjdmNjk1YmE1YzRlNGMyMTY0
15
+ M2U4ZWVlYjEzMGMyYzZhOWQ0YWU3MGUzMjIwNTQ4MmI0MWMzN2Y=
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # default - History
2
2
  ## Tags
3
- * [LATEST - 16 Nov, 2016 (9d6d30e0)](#LATEST)
3
+ * [LATEST - 22 Nov, 2016 (4b812f78)](#LATEST)
4
+ * [1.6.0 - 16 Nov, 2016 (0da1b64c)](#1.6.0)
4
5
  * [1.5.0 - 7 Nov, 2016 (24d78992)](#1.5.0)
5
6
  * [1.4.0 - 11 Oct, 2016 (6becdbb2)](#1.4.0)
6
7
  * [1.3.0 - 6 Oct, 2016 (97f781bb)](#1.3.0)
@@ -24,7 +25,32 @@
24
25
  * [0.1.0 - 29 Feb, 2016 (4fc88d8c)](#0.1.0)
25
26
 
26
27
  ## Details
27
- ### <a name = "LATEST">LATEST - 16 Nov, 2016 (9d6d30e0)
28
+ ### <a name = "LATEST">LATEST - 22 Nov, 2016 (4b812f78)
29
+
30
+ * (GEM) update beaker-pe version to 1.6.1 (4b812f78)
31
+
32
+ * Merge pull request #39 from james-stocks/BKR-967 (2d17d83f)
33
+
34
+
35
+ ```
36
+ Merge pull request #39 from james-stocks/BKR-967
37
+
38
+ Revert "(BKR-967) Add :disable_analytics option"
39
+ ```
40
+ * Revert "(BKR-967) Add :disable_analytics option" (a9fdaacb)
41
+
42
+
43
+ ```
44
+ Revert "(BKR-967) Add :disable_analytics option"
45
+
46
+ This reverts commit c9e25658e8cd282e1676d723131946268e308579.
47
+
48
+ This commit is not useful because it is blocking analytics from the console host;
49
+ but analytics are sent from the user browser and not the console host.
50
+ ```
51
+ ### <a name = "1.6.0">1.6.0 - 16 Nov, 2016 (0da1b64c)
52
+
53
+ * (HISTORY) update beaker-pe history for gem release 1.6.0 (0da1b64c)
28
54
 
29
55
  * (GEM) update beaker-pe version to 1.6.0 (9d6d30e0)
30
56
 
@@ -1,12 +1,9 @@
1
1
  [ 'aio_defaults', 'pe_defaults', 'puppet_utils', 'windows_utils' ].each do |lib|
2
2
  require "beaker/dsl/install_utils/#{lib}"
3
3
  end
4
- require "beaker/host_prebuilt_steps"
5
4
  require "beaker-answers"
6
5
  require "timeout"
7
6
  require "json"
8
- require "beaker-pe/options/presets"
9
-
10
7
  module Beaker
11
8
  module DSL
12
9
  module InstallUtils
@@ -25,7 +22,6 @@ module Beaker
25
22
  include PEDefaults
26
23
  include PuppetUtils
27
24
  include WindowsUtils
28
- include HostPrebuiltSteps
29
25
 
30
26
  # Version of PE when we switched from legacy installer to MEEP.
31
27
  MEEP_CUTOVER_VERSION = '2016.2.0'
@@ -713,12 +709,6 @@ module Beaker
713
709
  install_pe_on(hosts, options)
714
710
  end
715
711
 
716
- def disable_analytics(hosts)
717
- logger.info("Disabling analytics on dashboard host(s)")
718
- set_etc_hosts(hosts, "127.0.0.1\tgoogle-analytics.com\n")
719
- set_etc_hosts(hosts, "127.0.0.1\twww.google-analytics.com\n")
720
- end
721
-
722
712
  def check_puppetdb_status_endpoint(host)
723
713
  if version_is_less(host['pe_ver'], '2016.1.0')
724
714
  return true
@@ -788,8 +778,6 @@ module Beaker
788
778
  # options, refer to {#do_install} documentation
789
779
  #
790
780
  def install_pe_on(install_hosts, opts)
791
- opts = pe_presets.merge(opts)
792
-
793
781
  confine_block(:to, {}, install_hosts) do
794
782
  sorted_hosts.each do |host|
795
783
  #process the version files if necessary
@@ -807,11 +795,6 @@ module Beaker
807
795
  host['pe_ver'] ||= Beaker::Options::PEVersionScraper.load_pe_version(host[:pe_dir] || opts[:pe_dir], opts[:pe_version_file])
808
796
  end
809
797
  end
810
-
811
- if opts[:disable_analytics] then
812
- disable_analytics(dashboard)
813
- end
814
-
815
798
  do_install sorted_hosts, opts
816
799
  end
817
800
  end
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '1.6.0'
6
+ STRING = '1.6.1'
7
7
  end
8
8
 
9
9
  end
@@ -1,6 +1,5 @@
1
1
  require 'spec_helper'
2
2
  require 'beaker'
3
- require 'beaker-pe/options/presets'
4
3
 
5
4
  class ClassMixedWithDSLInstallUtils
6
5
  include Beaker::DSL::InstallUtils
@@ -284,7 +283,6 @@ describe ClassMixedWithDSLInstallUtils do
284
283
  context 'the do_higgs_install' do
285
284
  it 'submits the correct installer cmd to invoke Higgs' do
286
285
  prep_host(host)
287
- allow( subject ).to receive( :options ).and_return( {} )
288
286
  subject.do_higgs_install(host, opts)
289
287
  end
290
288
  end
@@ -307,7 +305,6 @@ describe ClassMixedWithDSLInstallUtils do
307
305
  context 'the do_higgs_install' do
308
306
  it 'submits the correct installer cmd to invoke Higgs' do
309
307
  prep_host(host)
310
- allow( subject ).to receive( :options ).and_return( {} )
311
308
  subject.do_higgs_install(host, opts)
312
309
  end
313
310
  end
@@ -892,7 +889,6 @@ describe ClassMixedWithDSLInstallUtils do
892
889
  end
893
890
 
894
891
  allow( subject ).to receive( :hosts ).and_return( hosts )
895
- allow( subject ).to receive( :options ).and_return( {} )
896
892
  #create answers file per-host, except windows
897
893
  allow( subject ).to receive( :create_remote_file ).with( hosts[0], /answers/, /q/ )
898
894
  #run installer on all hosts
@@ -948,7 +944,6 @@ describe ClassMixedWithDSLInstallUtils do
948
944
  allow( subject ).to receive( :sleep ).and_return( true )
949
945
 
950
946
  allow( subject ).to receive( :hosts ).and_return( hosts )
951
- allow( subject ).to receive( :options ).and_return( {} )
952
947
 
953
948
  #run higgs installer command
954
949
  expect( subject ).to receive( :on ).with( hosts[0],
@@ -964,7 +959,6 @@ describe ClassMixedWithDSLInstallUtils do
964
959
  allow( subject ).to receive( :sleep ).and_return( true )
965
960
 
966
961
  allow( subject ).to receive( :hosts ).and_return( hosts )
967
- allow( subject ).to receive( :options ).and_return( {} )
968
962
 
969
963
  #run higgs installer command
970
964
  expect( subject ).to receive( :on ).with( hosts[0],
@@ -983,35 +977,7 @@ describe ClassMixedWithDSLInstallUtils do
983
977
  allow( subject ).to receive( :options ).and_return( {} )
984
978
  allow( subject ).to receive( :hosts ).and_return( hosts_sorted )
985
979
  allow( subject ).to receive( :do_install ).and_return( true )
986
- allow( subject ).to receive( :set_etc_hosts )
987
- expect( subject ).to receive( :do_install ).with( hosts, pe_presets )
988
- subject.install_pe
989
- end
990
-
991
- it 'blocks analytics by default' do
992
- allow( subject ).to receive( :options ).and_return( {} )
993
- allow( subject ).to receive( :hosts ).and_return( hosts_sorted )
994
- allow( subject ).to receive( :do_install ).and_return( true )
995
- allow( subject ).to receive( :set_etc_hosts )
996
- expect( subject ).to receive( :do_install ).with( hosts, pe_presets )
997
- subject.install_pe
998
- end
999
-
1000
- it 'blocks analytics when disable_analytics is true' do
1001
- allow( subject ).to receive( :options ).and_return( {:disable_analytics => true} )
1002
- allow( subject ).to receive( :hosts ).and_return( hosts_sorted )
1003
- allow( subject ).to receive( :do_install ).and_return( true )
1004
- allow( subject ).to receive( :set_etc_hosts )
1005
- expect( subject ).to receive( :do_install ).with( hosts, {:disable_analytics => true} )
1006
- subject.install_pe
1007
- end
1008
-
1009
- it 'does not block analytics when disable_analytics is false' do
1010
- allow( subject ).to receive( :options ).and_return( {:disable_analytics => false} )
1011
- allow( subject ).to receive( :hosts ).and_return( hosts_sorted )
1012
- allow( subject ).to receive( :do_install ).and_return( true )
1013
- expect( subject ).to_not receive( :set_etc_hosts )
1014
- expect( subject ).to receive( :do_install ).with( hosts, {:disable_analytics => false} )
980
+ expect( subject ).to receive( :do_install ).with( hosts, {} )
1015
981
  subject.install_pe
1016
982
  end
1017
983
 
@@ -1023,8 +989,7 @@ describe ClassMixedWithDSLInstallUtils do
1023
989
  allow( subject ).to receive( :hosts ).and_return( hosts_sorted )
1024
990
  allow( subject ).to receive( :options ).and_return( {} )
1025
991
  allow( subject ).to receive( :do_install ).and_return( true )
1026
- allow( subject ).to receive( :set_etc_hosts )
1027
- expect( subject ).to receive( :do_install ).with( hosts, pe_presets )
992
+ expect( subject ).to receive( :do_install ).with( hosts, {} )
1028
993
  subject.install_pe
1029
994
  hosts.each do |h|
1030
995
  expect( h['pe_ver'] ).to be === '2.8'
@@ -1033,10 +998,8 @@ describe ClassMixedWithDSLInstallUtils do
1033
998
 
1034
999
  it 'can act upon a single host' do
1035
1000
  allow( subject ).to receive( :hosts ).and_return( hosts )
1036
- allow( subject ).to receive( :options ).and_return( {} )
1037
1001
  allow( subject ).to receive( :sorted_hosts ).and_return( [hosts[0]] )
1038
- allow( subject ).to receive( :set_etc_hosts )
1039
- expect( subject ).to receive( :do_install ).with( [hosts[0]], pe_presets )
1002
+ expect( subject ).to receive( :do_install ).with( [hosts[0]], {} )
1040
1003
  subject.install_pe_on(hosts[0], {})
1041
1004
  end
1042
1005
  end
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.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2016-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -191,7 +191,6 @@ files:
191
191
  - lib/beaker-pe.rb
192
192
  - lib/beaker-pe/install/pe_utils.rb
193
193
  - lib/beaker-pe/options/pe_version_scraper.rb
194
- - lib/beaker-pe/options/presets.rb
195
194
  - lib/beaker-pe/pe-client-tools/config_file_helper.rb
196
195
  - lib/beaker-pe/pe-client-tools/executable_helper.rb
197
196
  - lib/beaker-pe/pe-client-tools/install_helper.rb
@@ -1,9 +0,0 @@
1
- # Generates an OptionsHash of preset values for Beaker options relating to PE
2
- #
3
- # @return [OptionsHash] The supported arguments in an OptionsHash
4
- def pe_presets
5
- h = Beaker::Options::OptionsHash.new
6
- h.merge({
7
- :disable_analytics => true,
8
- })
9
- end