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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzMxMWVjMjk1ZjE0YTUzNjk5OGM3NTRlNTg5MjE5NjRmYjZjMmE5MA==
4
+ MjA5Nzc1NDk5NTY3Nzk2YTg3MWY5ZmM3MmEwZTE2NzI5MGU0Nzc1OQ==
5
5
  data.tar.gz: !binary |-
6
- ZTRhOWUyN2E5NWVmMzU5ZWQyZGY5YTNhZTgzNjA3Zjg1OTY1OThjMw==
6
+ MDM1MTA5MmU3YWJjODQ2ODliNWIyNjk4MTBkMmJjYzBjNTRhYzdhMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTlhZmM0NTVkODk1NzEyNDgwODczNzJkOGFmZjRmZmU5ZGFlMDAwNzQ5ODg4
10
- NGUwYjUzMjk3YmJkMmZmNTgwNzhiNDdjMWJiMzNiZjU2NGQ1ZGRhYjZlMDI5
11
- MjQ3YjdkM2I0NTljZThlZDc3ZmVmY2E3MTBkYjhmYzljNTlkODA=
9
+ MTkyNzFlNjdlNTE0YTJlMjc5ZjNkNjdlNjQyZmQ0YmZlZWJmODAxNWIzMWQ3
10
+ ODliZGI1NDgzMjBiMWI4MTUxNjU4OTc4M2Y5OTdjZTBmYjA2NmE5NjE5MTVh
11
+ Yzc0OWE3MzkzMjMzYjRjY2NiNzkyZGQzMGQ4YWZhY2U0ZmIzMzg=
12
12
  data.tar.gz: !binary |-
13
- NTI5NDJjMzUwMzE2YjM0YTE0NDE4NWI5Y2Q3Y2IxOTQ3NDIzZDVmMzg0ZDJh
14
- ZGY5ZTRjY2M0MjNkZDY4ZjMwM2MzODJkZjFmNzllMWFkMjIyZTk3NzU4NmQx
15
- NTc2YzA1N2FjMTcwNzA1ZTJmZDk2MjBlZmY3ZTgxNGMyMGYwY2Y=
13
+ YTZjNWYxMjIxYjM1NmJhMGQ0M2VhNTM3ZWZlNmJhZDlhYmE2MDQ5NDg5Y2Vh
14
+ ODRmMDAzODY4YjVmZWUwYzAzNGRlMDM4MWMwYWM2ZDNjNmExYTFiYjQyNGNj
15
+ YmE0ZmU5ZmY0M2RlMTllZjE2NzhkZWQ2ZGY1OGZjOTdjZmJlMmE=
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # default - History
2
2
  ## Tags
3
- * [LATEST - 28 Apr, 2016 (331f9d3e)](#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 - 28 Apr, 2016 (331f9d3e)
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
 
@@ -1,5 +1,5 @@
1
1
  module BeakerAnswers
2
2
  module Version
3
- STRING = '0.4.2'
3
+ STRING = '0.4.3'
4
4
  end
5
5
  end
@@ -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.2
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-04-29 00:00:00.000000000 Z
12
+ date: 2016-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec