beaker-pe 2.1.10 → 2.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/beaker-pe.gemspec +1 -0
- data/lib/beaker-pe/install/pe_utils.rb +2 -2
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +8 -5
- data/spec/helpers.rb +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56ad877ca03051cb37777bfab4e4fdddb77812f8
|
4
|
+
data.tar.gz: 76f82d5067afd25b8d91e028635237937faf403e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96d767c4d62da433440997b1f4e993ebe4781c52b4ecd48722081dd502228efca025ab7714dd2cfad9aac5ab4f6ecf82d7a7116eb96fb474254f9e87be8f7d45
|
7
|
+
data.tar.gz: ee43b324c93a8a99429bb33e3331d4564c25eb622cdfe5b9624897ecffd43c6a8d9a2b94d8665238a3896b6d8495895c10db7e2a330a826f6d5704a11f3d4539
|
data/beaker-pe.gemspec
CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
# Documentation dependencies
|
29
29
|
s.add_development_dependency 'yard'
|
30
30
|
s.add_development_dependency 'markdown'
|
31
|
+
s.add_development_dependency 'activesupport', '~> 5.0'
|
31
32
|
s.add_development_dependency 'thin'
|
32
33
|
|
33
34
|
# Run time dependencies
|
@@ -790,7 +790,7 @@ module Beaker
|
|
790
790
|
if host['roles'].include?('frictionless') && (! version_is_less(version, '3.2.0'))
|
791
791
|
# If We're *not* running the classic installer, we want
|
792
792
|
# to make sure the master has packages for us.
|
793
|
-
if host['
|
793
|
+
if host['packaging_platform'] != master['packaging_platform'] # only need to do this if platform differs
|
794
794
|
deploy_frictionless_to_master(host)
|
795
795
|
end
|
796
796
|
install_ca_cert_on(host, opts)
|
@@ -1884,7 +1884,7 @@ module Beaker
|
|
1884
1884
|
agent_nodes.each do |agent|
|
1885
1885
|
# If We're *not* running the classic installer, we want
|
1886
1886
|
# to make sure the master has packages for us.
|
1887
|
-
if agent['
|
1887
|
+
if agent['packaging_platform'] != master['packaging_platform'] # only need to do this if platform differs
|
1888
1888
|
deploy_frictionless_to_master(agent)
|
1889
1889
|
end
|
1890
1890
|
end
|
data/lib/beaker-pe/version.rb
CHANGED
@@ -1371,7 +1371,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1371
1371
|
let(:split_master) { make_host('mono_master', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['master', 'agent']) }
|
1372
1372
|
let(:split_database) { make_host('split_database', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['database', 'agent']) }
|
1373
1373
|
let(:split_console) { make_host('mono_master', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['dashboard', 'agent']) }
|
1374
|
-
let(:agent) { make_host('agent', :pe_ver => '2017.2', :platform => 'el-7-x86_64', :roles => ['agent'])}
|
1374
|
+
let(:agent) { make_host('agent', :pe_ver => '2017.2', :platform => 'el-7-x86_64', :packaging_platform => 'el-7-x86_64', :roles => ['agent'])}
|
1375
1375
|
|
1376
1376
|
it 'will do a monolithic installation of PE with an external postgres that is managed by PE' do
|
1377
1377
|
allow(subject).to receive(:fetch_pe).with([mono_master, pe_postgres], {}).and_return(true)
|
@@ -1602,7 +1602,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1602
1602
|
|
1603
1603
|
describe '#deploy_frictionless_to_master' do
|
1604
1604
|
let(:master) { make_host('master', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['master', 'database', 'dashboard']) }
|
1605
|
-
let(:agent) { make_host('agent', :pe_ver => '2017.2', :platform => 'el-7-x86_64', :roles => ['frictionless']) }
|
1605
|
+
let(:agent) { make_host('agent', :pe_ver => '2017.2', :platform => 'el-7-x86_64', :packaging_platform => 'el-7-x86_64', :roles => ['frictionless']) }
|
1606
1606
|
let(:compile_master) { make_host('agent', :pe_ver => '2017.2', :roles => ['frictionless', 'compile_master']) }
|
1607
1607
|
let(:pe_compiler) { make_host('agent', :pe_ver => '2019.2', :roles => ['frictionless', 'pe_compiler']) }
|
1608
1608
|
let(:dispatcher) { double('dispatcher') }
|
@@ -1972,9 +1972,9 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1972
1972
|
end
|
1973
1973
|
|
1974
1974
|
describe 'simple_monolithic_install' do
|
1975
|
-
let(:monolithic) { make_host('monolithic', :pe_ver => '2016.4', :platform => 'el-7-x86_64', :roles => [ 'master', 'database', 'dashboard' ]) }
|
1976
|
-
let(:el_agent) { make_host('agent', :pe_ver => '2016.4', :platform => 'el-7-x86_64', :roles => ['frictionless']) }
|
1977
|
-
let(:deb_agent) { make_host('agent', :pe_ver => '2016.4', :platform => 'debian-7-x86_64', :roles => ['frictionless']) }
|
1975
|
+
let(:monolithic) { make_host('monolithic', :pe_ver => '2016.4', :platform => 'el-7-x86_64', :packaging_platform => 'el-7-x86_64', :roles => [ 'master', 'database', 'dashboard' ]) }
|
1976
|
+
let(:el_agent) { make_host('agent', :pe_ver => '2016.4', :platform => 'el-7-x86_64', :packaging_platform => 'el-7-86_64', :roles => ['frictionless']) }
|
1977
|
+
let(:deb_agent) { make_host('agent', :pe_ver => '2016.4', :platform => 'debian-7-x86_64', :packaging_platform => 'debian-7-x86_64', :roles => ['frictionless']) }
|
1978
1978
|
|
1979
1979
|
before :each do
|
1980
1980
|
allow(subject).to receive(:on)
|
@@ -2010,10 +2010,12 @@ describe ClassMixedWithDSLInstallUtils do
|
|
2010
2010
|
let(:monolithic) { make_host('monolithic',
|
2011
2011
|
:pe_ver => '2016.4',
|
2012
2012
|
:platform => 'el-7-x86_64',
|
2013
|
+
:packaging_platform => 'el-7-x86_64',
|
2013
2014
|
:roles => ['master', 'database', 'dashboard']) }
|
2014
2015
|
let(:agent) { make_host('agent',
|
2015
2016
|
:pe_ver => '2016.4',
|
2016
2017
|
:platform => 'el-7-x86_64',
|
2018
|
+
:packaging_platform => 'el-7-x86_64',
|
2017
2019
|
:roles => ['frictionless']) }
|
2018
2020
|
before :each do
|
2019
2021
|
allow(subject).to receive(:on)
|
@@ -2032,6 +2034,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
2032
2034
|
|
2033
2035
|
it 'calls deploy_frictionless_to_master if agent platform is different from master' do
|
2034
2036
|
agent['platform'] = 'deb-7-x86_64'
|
2037
|
+
agent['packaging_platform'] = 'deb-7-x86_64'
|
2035
2038
|
expect(subject).to receive(:deploy_frictionless_to_master)
|
2036
2039
|
subject.install_agents_only_on([agent], opts)
|
2037
2040
|
end
|
data/spec/helpers.rb
CHANGED
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: 2.1.
|
4
|
+
version: 2.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -128,6 +128,20 @@ dependencies:
|
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: activesupport
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '5.0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '5.0'
|
131
145
|
- !ruby/object:Gem::Dependency
|
132
146
|
name: thin
|
133
147
|
requirement: !ruby/object:Gem::Requirement
|