beaker-answers 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/HISTORY.md +27 -2
- data/lib/beaker-answers/version.rb +1 -1
- data/lib/beaker-answers/versions/version20162.rb +19 -0
- data/spec/beaker-answers/beaker-answers_spec.rb +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjA5Nzc1NDk5NTY3Nzk2YTg3MWY5ZmM3MmEwZTE2NzI5MGU0Nzc1OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDM1MTA5MmU3YWJjODQ2ODliNWIyNjk4MTBkMmJjYzBjNTRhYzdhMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTkyNzFlNjdlNTE0YTJlMjc5ZjNkNjdlNjQyZmQ0YmZlZWJmODAxNWIzMWQ3
|
10
|
+
ODliZGI1NDgzMjBiMWI4MTUxNjU4OTc4M2Y5OTdjZTBmYjA2NmE5NjE5MTVh
|
11
|
+
Yzc0OWE3MzkzMjMzYjRjY2NiNzkyZGQzMGQ4YWZhY2U0ZmIzMzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTZjNWYxMjIxYjM1NmJhMGQ0M2VhNTM3ZWZlNmJhZDlhYmE2MDQ5NDg5Y2Vh
|
14
|
+
ODRmMDAzODY4YjVmZWUwYzAzNGRlMDM4MWMwYWM2ZDNjNmExYTFiYjQyNGNj
|
15
|
+
YmE0ZmU5ZmY0M2RlMTllZjE2NzhkZWQ2ZGY1OGZjOTdjZmJlMmE=
|
data/HISTORY.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# default - History
|
2
2
|
## Tags
|
3
|
-
* [LATEST -
|
3
|
+
* [LATEST - 10 May, 2016 (92edeb28)](#LATEST)
|
4
|
+
* [0.4.2 - 28 Apr, 2016 (79ccd5de)](#0.4.2)
|
4
5
|
* [0.4.1 - 28 Apr, 2016 (d9d14510)](#0.4.1)
|
5
6
|
* [0.4.0 - 12 Feb, 2016 (96d0d7cf)](#0.4.0)
|
6
7
|
* [0.3.2 - 10 Nov, 2015 (f699c033)](#0.3.2)
|
@@ -12,7 +13,31 @@
|
|
12
13
|
* [0.1.0 - 26 Aug, 2015 (ef47972d)](#0.1.0)
|
13
14
|
|
14
15
|
## Details
|
15
|
-
### <a name = "LATEST">LATEST -
|
16
|
+
### <a name = "LATEST">LATEST - 10 May, 2016 (92edeb28)
|
17
|
+
|
18
|
+
* (GEM) update beaker-answers version to 0.4.3 (92edeb28)
|
19
|
+
|
20
|
+
* Merge pull request #14 from ericwilliamson/task/master/legacy-ssl-auth-support (bef1af14)
|
21
|
+
|
22
|
+
|
23
|
+
```
|
24
|
+
Merge pull request #14 from ericwilliamson/task/master/legacy-ssl-auth-support
|
25
|
+
|
26
|
+
(PE-14877) Pass in orchestrator db to console
|
27
|
+
```
|
28
|
+
* (PE-14877) Pass in orchestrator db to console (f1d09078)
|
29
|
+
|
30
|
+
|
31
|
+
```
|
32
|
+
(PE-14877) Pass in orchestrator db to console
|
33
|
+
|
34
|
+
To allow SSL cert based auth in the new installer while maintaining the legacy
|
35
|
+
bash script, the console node now needs to know about the orchestrator database user
|
36
|
+
and name if they are specified to be non default
|
37
|
+
```
|
38
|
+
### <a name = "0.4.2">0.4.2 - 28 Apr, 2016 (79ccd5de)
|
39
|
+
|
40
|
+
* (HISTORY) update beaker-answers history for gem release 0.4.2 (79ccd5de)
|
16
41
|
|
17
42
|
* (GEM) update beaker-answers version to 0.4.2 (331f9d3e)
|
18
43
|
|
@@ -9,5 +9,24 @@ module BeakerAnswers
|
|
9
9
|
def self.pe_version_matcher
|
10
10
|
/\A2016\.2/
|
11
11
|
end
|
12
|
+
|
13
|
+
def generate_answers
|
14
|
+
the_answers = super
|
15
|
+
|
16
|
+
return the_answers if @options[:masterless]
|
17
|
+
console = only_host_with_role(@hosts, 'dashboard')
|
18
|
+
|
19
|
+
# To allow SSL cert based auth in the new installer while maintaining the legacy
|
20
|
+
# bash script, the console node now needs to know about the orchestrator database user
|
21
|
+
# and name if they are specified to be non default
|
22
|
+
orchestrator_db = {
|
23
|
+
:q_orchestrator_database_name => answer_for(@options, :q_orchestrator_database_name),
|
24
|
+
:q_orchestrator_database_user => answer_for(@options, :q_orchestrator_database_user),
|
25
|
+
}
|
26
|
+
|
27
|
+
the_answers[console.name].merge!(orchestrator_db)
|
28
|
+
|
29
|
+
the_answers
|
30
|
+
end
|
12
31
|
end
|
13
32
|
end
|
@@ -357,6 +357,27 @@ describe BeakerAnswers::Version20153 do
|
|
357
357
|
end
|
358
358
|
end
|
359
359
|
|
360
|
+
describe BeakerAnswers::Version20162 do
|
361
|
+
let( :options ) { StringifyHash.new }
|
362
|
+
let( :basic_hosts ) { make_hosts( {'pe_ver' => @ver } ) }
|
363
|
+
let( :hosts ) { basic_hosts[0]['roles'] = ['master', 'agent']
|
364
|
+
basic_hosts[1]['roles'] = ['dashboard', 'agent']
|
365
|
+
basic_hosts[2]['roles'] = ['database', 'agent']
|
366
|
+
basic_hosts }
|
367
|
+
let( :answers ) { BeakerAnswers::Answers.create(@ver, hosts, options) }
|
368
|
+
let( :upgrade_answers ) { BeakerAnswers::Answers.create(@ver, hosts, options.merge( {:type => :upgrade}) ) }
|
369
|
+
|
370
|
+
before :each do
|
371
|
+
@ver = '2016.2'
|
372
|
+
@answers = answers.answers
|
373
|
+
end
|
374
|
+
|
375
|
+
it 'should add orchestrator database answers to console' do
|
376
|
+
expect( @answers['vm2'][:q_orchestrator_database_name] ).to be === 'pe-orchestrator'
|
377
|
+
expect( @answers['vm2'][:q_orchestrator_database_user] ).to be === 'Orc3Str8R'
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
360
381
|
describe BeakerAnswers::Version32 do
|
361
382
|
let( :options ) { StringifyHash.new }
|
362
383
|
let( :basic_hosts ) { make_hosts( {'pe_ver' => @ver } ) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-answers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|