beaker-pe 1.40.6 → 1.40.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/beaker-pe/install/pe_utils.rb +22 -1
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13b9a267af89667c3168a4aa6a267cf2ea954ef9
|
4
|
+
data.tar.gz: 242ee943235059d01652b11d142c89b5d31df6dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1bc4764587f3951b6dfb3b2080ad7b15c95140197fb43fa655485dedd00a04aeef4f305fb81a9978a9ab73cd4a6943eb2dffd7853d1d8bf6c888592e8831ebd
|
7
|
+
data.tar.gz: 114e4129d42b8b9aba12359507931426ba5f541b0aeb4d9e38cbe5781fb7016cd36c6de5d5d8c2c56c34854fe71b7b7738c2514b830e3404c17b5f5bb309e3e9
|
@@ -1371,10 +1371,31 @@ module Beaker
|
|
1371
1371
|
# The host object must have the 'working_dir', 'dist' and 'pe_installer' field set correctly.
|
1372
1372
|
# @api private
|
1373
1373
|
def higgs_installer_cmd host
|
1374
|
-
higgs_answer =
|
1374
|
+
higgs_answer = determine_higgs_answer(host['pe_ver'])
|
1375
1375
|
"cd #{host['working_dir']}/#{host['dist']} ; nohup ./#{host['pe_installer']} <<<#{higgs_answer} > #{host['higgs_file']} 2>&1 &"
|
1376
1376
|
end
|
1377
1377
|
|
1378
|
+
# Determines the answer to supply to the command line installer in order to load up Higgs
|
1379
|
+
# @return [String]
|
1380
|
+
# One of, 'Y', '1', '2'
|
1381
|
+
# 'Y'
|
1382
|
+
# Pre-meep install of Higgs (Before PE 2016.2.0)
|
1383
|
+
# '1'
|
1384
|
+
# meep before PE 2018.1.3 (PE 2016.2.0 -> PE 2018.1.2)
|
1385
|
+
# '2'
|
1386
|
+
# Any meep PE 2018.1.3 or greater
|
1387
|
+
def determine_higgs_answer(pe_ver)
|
1388
|
+
if(use_meep?(pe_ver))
|
1389
|
+
if(version_is_less(pe_ver, '2018.1.3'))
|
1390
|
+
return '1'
|
1391
|
+
else
|
1392
|
+
return '2'
|
1393
|
+
end
|
1394
|
+
else
|
1395
|
+
return 'Y'
|
1396
|
+
end
|
1397
|
+
end
|
1398
|
+
|
1378
1399
|
#Perform a Puppet Enterprise Higgs install up until web browser interaction is required, runs on linux hosts only.
|
1379
1400
|
# @param [Host] host The host to install higgs on
|
1380
1401
|
# @param [Hash{Symbol=>Symbol, String}] opts The options
|
data/lib/beaker-pe/version.rb
CHANGED
@@ -2469,6 +2469,18 @@ describe ClassMixedWithDSLInstallUtils do
|
|
2469
2469
|
end
|
2470
2470
|
end
|
2471
2471
|
|
2472
|
+
describe 'determine_higgs_answer' do
|
2473
|
+
it 'returns Y if the pe_ver is pre-meep' do
|
2474
|
+
expect(subject.determine_higgs_answer('2016.1.0')).to eq('Y')
|
2475
|
+
end
|
2476
|
+
it 'returns 1 if the pe_ver is less then 2018.1.3' do
|
2477
|
+
expect(subject.determine_higgs_answer('2018.1.0')).to eq('1')
|
2478
|
+
end
|
2479
|
+
it 'returns 2 if the pe_ver is greater then 2018.1.3' do
|
2480
|
+
expect(subject.determine_higgs_answer('2018.2.0')).to eq('2')
|
2481
|
+
end
|
2482
|
+
end
|
2483
|
+
|
2472
2484
|
describe 'update_pe_conf' do
|
2473
2485
|
let(:pe_version) { '2017.1.0' }
|
2474
2486
|
let(:master) { hosts[0] }
|
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.40.
|
4
|
+
version: 1.40.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|