beaker-pe 1.35.0 → 1.36.0
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 +7 -0
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +17 -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: a17dc91d56e07d14fd5547212a846aa002361d91
|
4
|
+
data.tar.gz: a9b79e20ba95a43f3250a654389d9ff28f15ce3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53bb7ca46de519fd5b8c96649e58a04f44befc203eaa63d187f29e585d312543b7f9b729005f08e8331f9b996f639dafac842eaf42485c0386b656a6bde0be8d
|
7
|
+
data.tar.gz: 65316498104bb3e13ef92afbb44b33dc017fa2df9b0405e14f876fc3121809d9bf45d9457ebc0e40a9bbe8adb8eaa3fa9faa89941427f0bf4c81072956b3672f
|
@@ -148,6 +148,13 @@ module Beaker
|
|
148
148
|
end
|
149
149
|
end
|
150
150
|
|
151
|
+
# pe_repo also supports flags that will determine what happens during the frictionless install
|
152
|
+
# Current support in beaker-pe is for:
|
153
|
+
# --puppet-service-debug, when running puppet service enable, the debug flag is passed into puppt service
|
154
|
+
if host[:puppet_service_debug_flag] == true
|
155
|
+
frictionless_install_opts << '--puppet-service-debug'
|
156
|
+
end
|
157
|
+
|
151
158
|
# If this is an agent node configured to connect to the loadbalancer
|
152
159
|
# using 'lb_connect' role, then use loadbalancer in the download url
|
153
160
|
# instead of master
|
data/lib/beaker-pe/version.rb
CHANGED
@@ -314,6 +314,18 @@ describe ClassMixedWithDSLInstallUtils do
|
|
314
314
|
|
315
315
|
expect( subject.frictionless_agent_installer_cmd( lb_test_hosts[3], {}, '2016.4.0' ) ).to eq(expecting)
|
316
316
|
end
|
317
|
+
|
318
|
+
it 'generates a unix PE frictionless install command with the puppet service debug flag' do
|
319
|
+
host[:puppet_service_debug_flag] = true
|
320
|
+
expecting = [
|
321
|
+
"FRICTIONLESS_TRACE='true'",
|
322
|
+
"export FRICTIONLESS_TRACE",
|
323
|
+
"cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash install.bash --puppet-service-debug"
|
324
|
+
].join("; ")
|
325
|
+
|
326
|
+
expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq(expecting)
|
327
|
+
end
|
328
|
+
|
317
329
|
end
|
318
330
|
|
319
331
|
describe 'install_ca_cert_on' do
|
@@ -1379,6 +1391,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1379
1391
|
end
|
1380
1392
|
|
1381
1393
|
it 'can perform a simple installation' do
|
1394
|
+
allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
|
1382
1395
|
allow( subject ).to receive( :on ).and_return( Beaker::Result.new( {}, '' ) )
|
1383
1396
|
allow( subject ).to receive( :fetch_pe ).and_return( true )
|
1384
1397
|
allow( subject ).to receive( :create_remote_file ).and_return( true )
|
@@ -1451,6 +1464,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1451
1464
|
}, 1)
|
1452
1465
|
opts[:masterless] = true
|
1453
1466
|
|
1467
|
+
allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
|
1454
1468
|
allow( subject ).to receive( :hosts ).and_return( hosts )
|
1455
1469
|
allow( subject ).to receive( :on ).and_return( Beaker::Result.new( {}, '' ) )
|
1456
1470
|
allow( subject ).to receive( :fetch_pe ).and_return( true )
|
@@ -1484,6 +1498,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1484
1498
|
hosts[2][:pe_promoted_builds_url] = nil
|
1485
1499
|
hosts[3][:pe_promoted_builds_url] = 'test-url'
|
1486
1500
|
|
1501
|
+
allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
|
1487
1502
|
allow( subject ).to receive( :hosts ).and_return( hosts )
|
1488
1503
|
allow( subject ).to receive( :options ).and_return(Beaker::Options::Presets.new.presets)
|
1489
1504
|
allow( subject ).to receive( :on ).and_return( Beaker::Result.new( {}, '' ) )
|
@@ -1568,6 +1583,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1568
1583
|
hosts[2][:platform] = Beaker::Platform.new('el-6-x86_64')
|
1569
1584
|
hosts[2][:pe_ver] = '3.8'
|
1570
1585
|
|
1586
|
+
allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
|
1571
1587
|
pa_version = 'rarified_air_1675'
|
1572
1588
|
allow( subject ).to receive( :get_puppet_agent_version ).and_return( pa_version )
|
1573
1589
|
|
@@ -1638,6 +1654,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1638
1654
|
opts[:HOSTS][host.name] = host
|
1639
1655
|
end
|
1640
1656
|
|
1657
|
+
allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
|
1641
1658
|
pa_version = 'rarified_air_75699'
|
1642
1659
|
allow( subject ).to receive( :get_puppet_agent_version ).and_return( pa_version )
|
1643
1660
|
|
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.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|