beaker-pe 1.29.0 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/beaker-pe/install/pe_utils.rb +1 -1
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjViMjE3NDc2NGE0MThhNjc0OGZkODg5ODI1MzU3M2U2ZmNiMzgwNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTE3ZmY4YjgyNDQ2ZDRmNGI0ZTQ1OWRkZWVkNWE3Y2E5MTE5NjJjNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzhhZGQ3ZjUwZWRhMzkzNTg5ZDcxZDQwNmE5MWM3ZWFmZjU5MzhmOTA5Mzdl
|
10
|
+
NmRlNjQxMDY4ZmQwOTVkMzRiMTJhNjgxMTA2ODZlODE2NzMzNWVkODg5Zjgy
|
11
|
+
NzU5ZDM4NjNmMjBlNzNkN2QxMDE5YWZlN2ZhZWE2Y2Y1NWQ4NjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGVmOGQ0NDBiNTEyMjc2MjA4MGI0Zjk0MDM3YWY3MWVjZmFlMmZjM2M2NmFh
|
14
|
+
YTdiY2RiMTYzYTc4YmYyODJiZTkxYmFiZGE5MjQ3ZTY3MGEzNzdmZGRiMzI3
|
15
|
+
NWQ2NGVhZWQwYjE4ZTY2NjIyNzQ3ZDdiMjMwY2QxZGY2ZTZhMmM=
|
@@ -524,7 +524,7 @@ module Beaker
|
|
524
524
|
# Do a generic install if this is masterless, not all the same PE version, an upgrade, or earlier than 2016.4
|
525
525
|
return :generic if opts[:masterless]
|
526
526
|
return :generic if hosts.map {|host| host['pe_ver']}.uniq.length > 1
|
527
|
-
return :generic if opts[:type] == :upgrade
|
527
|
+
return :generic if (opts[:type] == :upgrade) && (hosts.none? {|host| host['roles'].include?('pe_postgres')})
|
528
528
|
return :generic if version_is_less(opts[:pe_ver] || hosts.first['pe_ver'], '2016.4')
|
529
529
|
#PE-20610 Do a generic install for old versions on windows that needs msi install because of PE-18351
|
530
530
|
return :generic if hosts.any? {|host| host['platform'] =~ /windows/ && install_via_msi?(host)}
|
data/lib/beaker-pe/version.rb
CHANGED
@@ -1102,6 +1102,11 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1102
1102
|
expect(subject.determine_install_type(hosts, {:type => :upgrade})).to eq(:generic)
|
1103
1103
|
end
|
1104
1104
|
|
1105
|
+
it 'identifies an upgrade with postgres as pe_managed_postgres' do
|
1106
|
+
hosts = [master, puppetdb, console, pe_postgres]
|
1107
|
+
expect(subject.determine_install_type(hosts, {:type => :upgrade})).to eq(:pe_managed_postgres)
|
1108
|
+
end
|
1109
|
+
|
1105
1110
|
it 'identifies a legacy PE version as generic' do
|
1106
1111
|
old_monolithic = make_host('monolithic', :pe_ver => '3.8', :roles => [ 'master', 'database', 'dashboard' ])
|
1107
1112
|
old_agent = make_host('agent', :pe_ver => '3.8', :roles => ['frictionless'])
|
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.
|
4
|
+
version: 1.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|