beaker-pe 1.28.0 → 1.29.0

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
- OWVhNGRjNGI1NGZkYThmYTQ3NDliMTNkZGQ2Zjg5OTFhNjEwZmQxMA==
4
+ YjJjMDhkODRmN2EzN2ZjMmQyMjViMzYyNjBmNTkxNjM2N2FiZTc3Zg==
5
5
  data.tar.gz: !binary |-
6
- Yzc5MWQ5NTFlY2U2YTc2YTNlMTIyOWVjMjVlMzQ3OTNhYjAwNWU5NQ==
6
+ MDYzNjdhN2QzZTkzZWVjMWY4YTkzM2NjZDY1NmVkZWZkZTRkZDBhNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmNmNTM2MjViYzU2MTllYzNkYzg1ODFmOTc1OWVkMGRhMDc0OGUzYzg2MzU1
10
- NDlkOTg5NGUzZGYwOTcyMjVkODI5ZDZkNzQ2YWI3ZjdlOWUwZjA2ZDQ5MTc5
11
- ZWVhZWE5NTNjNDFlOWMwMTNlNzkwNzdhMGZjODBkNjZmZTk3Y2Y=
9
+ MmE5YWJlMmNiZjg5YTMzNTY5MGIwYjUzZWE5MDhmNDE2M2Q3YTFiMGE3MzQ2
10
+ ZGQwNWMwMGRiZDA3NWNhMzcwNWJjNGM0NTg1Y2JkM2Y2YTViYzUxMDA1ZDky
11
+ NGNlYjU0MTZlZTgyY2UzYjBiNmRkMDRmMzcwNGFiY2ZiY2FlNWU=
12
12
  data.tar.gz: !binary |-
13
- NjdhMjg1N2U3ZDFkYjg5MDVmZGQ4ZjNiZjM4YjBmZGNmZjRhNDI5MDU3ZDgw
14
- ZWI1ODE3ZDU1ZGEzODllYjE5ZjcyYjg5NDU5ZmI5MTY5NjJhNTQxYmQyMjU3
15
- YjA1NTFlNmI2ZWQ5M2E4MDI0OTQ1ZWExZjRkZDMzMDM3NGI5OWU=
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(hosts,opts)
1327
+ prepare_hosts(pe_infrastructure,opts)
1326
1328
  register_feature_flags!(opts)
1327
- fetch_pe(hosts,opts)
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
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '1.28.0'
6
+ STRING = '1.29.0'
7
7
  end
8
8
 
9
9
  end
@@ -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]).once
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
- expect{ subject.do_install_pe_with_pe_managed_external_postgres([mono_master, pe_postgres], {}) }.not_to raise_error
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.28.0
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-20 00:00:00.000000000 Z
11
+ date: 2017-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec