beaker-pe 1.28.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/beaker-pe/install/pe_utils.rb +17 -2
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YjJjMDhkODRmN2EzN2ZjMmQyMjViMzYyNjBmNTkxNjM2N2FiZTc3Zg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MDYzNjdhN2QzZTkzZWVjMWY4YTkzM2NjZDY1NmVkZWZkZTRkZDBhNw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MmE5YWJlMmNiZjg5YTMzNTY5MGIwYjUzZWE5MDhmNDE2M2Q3YTFiMGE3MzQ2
|
|
10
|
+
ZGQwNWMwMGRiZDA3NWNhMzcwNWJjNGM0NTg1Y2JkM2Y2YTViYzUxMDA1ZDky
|
|
11
|
+
NGNlYjU0MTZlZTgyY2UzYjBiNmRkMDRmMzcwNGFiY2ZiY2FlNWU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZmEyMTcxZmM0NDVmZDc4YTIwZTRhN2RlM2ViZjNhMWNhMWVmMjJiNjVlZmU3
|
|
14
|
+
ZDllNDk4M2UyZmFiZDY0OTdmMzRjM2FhYTdjNGI2YjNlYmZlMTk1YWJkNjlm
|
|
15
|
+
ZjMwOGMyODgyNTkwMWVkOTA3YjNlMTdiNWRjNTk4MGEyZjcyMmQ=
|
|
@@ -1318,13 +1318,15 @@ module Beaker
|
|
|
1318
1318
|
|
|
1319
1319
|
#Installs PE with a PE managed external postgres
|
|
1320
1320
|
def do_install_pe_with_pe_managed_external_postgres(hosts, opts)
|
|
1321
|
+
pe_infrastructure = select_hosts({:roles => ['master', 'compile_master', 'dashboard', 'database', 'pe_postgres']}, hosts)
|
|
1322
|
+
non_infrastructure = hosts.reject{|host| pe_infrastructure.include? host}
|
|
1321
1323
|
|
|
1322
1324
|
is_upgrade = (original_pe_ver(hosts[0]) != hosts[0][:pe_ver])
|
|
1323
1325
|
step "Setup tmp installer directory and pe.conf" do
|
|
1324
1326
|
|
|
1325
|
-
prepare_hosts(
|
|
1327
|
+
prepare_hosts(pe_infrastructure,opts)
|
|
1326
1328
|
register_feature_flags!(opts)
|
|
1327
|
-
fetch_pe(
|
|
1329
|
+
fetch_pe(pe_infrastructure,opts)
|
|
1328
1330
|
|
|
1329
1331
|
[master, database, dashboard, pe_postgres].uniq.each do |host|
|
|
1330
1332
|
prepare_host_installer_options(host)
|
|
@@ -1363,6 +1365,19 @@ module Beaker
|
|
|
1363
1365
|
on host, 'puppet agent -t', :acceptable_exit_codes => [0,2]
|
|
1364
1366
|
end
|
|
1365
1367
|
end
|
|
1368
|
+
|
|
1369
|
+
if(non_infrastructure.size > 0)
|
|
1370
|
+
install_agents_only_on(non_infrastructure, opts)
|
|
1371
|
+
|
|
1372
|
+
step "Run puppet to setup mcollective and pxp-agent" do
|
|
1373
|
+
on master, 'puppet agent -t', :acceptable_exit_codes => [0,2]
|
|
1374
|
+
run_puppet_on_non_infrastructure_nodes(non_infrastructure)
|
|
1375
|
+
end
|
|
1376
|
+
|
|
1377
|
+
step "Run puppet a second time on the primary to populate services.conf (PE-19054)" do
|
|
1378
|
+
on master, 'puppet agent -t', :acceptable_exit_codes => [0,2]
|
|
1379
|
+
end
|
|
1380
|
+
end
|
|
1366
1381
|
end
|
|
1367
1382
|
|
|
1368
1383
|
# Grabs the pe file from a remote host to the machine running Beaker, then
|
data/lib/beaker-pe/version.rb
CHANGED
|
@@ -1131,12 +1131,13 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1131
1131
|
end
|
|
1132
1132
|
end
|
|
1133
1133
|
|
|
1134
|
-
describe 'do_install_pe_with_pe_managed_external_postgres' do
|
|
1134
|
+
describe 'do_install_pe_with_pe_managed_external_postgres with an agent' do
|
|
1135
1135
|
let(:mono_master) { make_host('mono_master', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['master', 'database', 'dashboard']) }
|
|
1136
1136
|
let(:pe_postgres) { make_host('pe_postgres', :pe_ver => '2017.2', :platform => 'el-7-x86_64', :roles => ['pe_postgres', 'agent']) }
|
|
1137
1137
|
let(:split_master) { make_host('mono_master', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['master', 'agent']) }
|
|
1138
1138
|
let(:split_database) { make_host('split_database', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['database', 'agent']) }
|
|
1139
1139
|
let(:split_console) { make_host('mono_master', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['dashboard', 'agent']) }
|
|
1140
|
+
let(:agent) { make_host('agent', :pe_ver => '2017.2', :platform => 'el-7-x86_64', :roles => ['agent'])}
|
|
1140
1141
|
|
|
1141
1142
|
it 'will do a monolithic installation of PE with an external postgres that is managed by PE' do
|
|
1142
1143
|
allow(subject).to receive(:fetch_pe).with([mono_master, pe_postgres], {}).and_return(true)
|
|
@@ -1153,10 +1154,13 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1153
1154
|
allow(subject).to receive(:execute_installer_cmd).with(mono_master, {}).twice
|
|
1154
1155
|
allow(subject).to receive(:execute_installer_cmd).with(pe_postgres, {}).once
|
|
1155
1156
|
|
|
1156
|
-
allow(subject).to receive(:on).with(mono_master, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).
|
|
1157
|
+
allow(subject).to receive(:on).with(mono_master, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).exactly(3).times
|
|
1157
1158
|
allow(subject).to receive(:on).with(pe_postgres, "puppet agent -t", :acceptable_exit_codes=> [0, 2]).once
|
|
1158
1159
|
|
|
1159
|
-
|
|
1160
|
+
allow(subject).to receive(:install_agents_only_on).with([agent], {})
|
|
1161
|
+
allow(subject).to receive(:run_puppet_on_non_infrastructure_nodes).with([agent])
|
|
1162
|
+
|
|
1163
|
+
expect{ subject.do_install_pe_with_pe_managed_external_postgres([mono_master, pe_postgres, agent], {}) }.not_to raise_error
|
|
1160
1164
|
end
|
|
1161
1165
|
|
|
1162
1166
|
it 'will do a monolithic upgrade of PE with an external postgres that is managed by PE' do
|
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.29.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-12-
|
|
11
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|