beaker-answers 0.5.2 → 0.6.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
- NDg1YmEwYTYzYTUxOTA5NmM3YjljYzdjMzA0ZTdiZGVmYjU3Yzc1Yw==
4
+ Yjk4YTE4NGMzZjRjMDAzYWRiNWY5ZThjOTIzN2MwYjRhYmQ1YmZlMw==
5
5
  data.tar.gz: !binary |-
6
- YjA4Mjk5MDRlMDNmZDNiNDJlNDQwZmQ1NDY3NTA2MjE4MTk3ZTY0NA==
6
+ NWRkOWU0ZTAzMDg2MGRlM2FhNTM1ODE5NDg5MDRjMGRkOTczOTVhOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGQ2Zjc3OWYzZTNiOWUwMDRjM2Y4NGNlNGY3ZmI3MjNiODJlYWE5ZDBiZDdm
10
- MmJiM2MxZmRjYmYwNTM0MTU1Nzk0YmVkYTBkMzA1YWVlNjlhNDQ4MmIwY2Yw
11
- ZmI4MzQzNDgxMTY4NDMxY2Q4MzQzODgxZDk4NzEyOGE1MzZjMzY=
9
+ OWNlZmI5Nzg4YWI1OTMzM2EzZmY2NjE3OGY4MTNmZWY3OWM0MzVjNWRkNjNl
10
+ MWZiOTc5OGMyNGQ5MzIyNWExYjMyZjNjM2Y5YWEwNDhjMDNkOGEwNTlkZTlk
11
+ NjAyZDUwZjY5NmQxNWJiNmY1ODUwYzg2NDZmMGFhMjFkZDliZWU=
12
12
  data.tar.gz: !binary |-
13
- ODY5MjJhZGFiZGYxZTRkMzZjMTk1OTI1ODBlNTQxN2YwZTY1NDU3NmVmZTFl
14
- NjM4NmRlMTEwOGRhMDM3MzkyNTNlOWRkNGRkZjIxZmYwNmFjY2Y3YjM3NzZk
15
- NDUzMjhhYWZiMmFmMDhhNjJhYmFhMTA4ZjhhZWE0NGJkNjU1ZmM=
13
+ OTkxODA4NmYxMmQyNzgzNjNmNDRiMTNjOGZjOTBkOGIxNjI2NTMzZThmZmU2
14
+ OWE4YWRhY2ZhOTkyNzc1NDU1YWViZmQ1NzAxYTdmYWI1ZTlkYzYyM2VlN2Ey
15
+ MTQwZGNjMGVlYTk0ZmVhZGRkNTc2YTU4YzE5ZTMwMzFhZGVmNjY=
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # default - History
2
2
  ## Tags
3
- * [LATEST - 6 Jun, 2016 (8f6a39db)](#LATEST)
3
+ * [LATEST - 15 Jun, 2016 (7ffb00c1)](#LATEST)
4
+ * [0.5.2 - 6 Jun, 2016 (bb16b018)](#0.5.2)
4
5
  * [0.5.1 - 26 May, 2016 (c74a3fec)](#0.5.1)
5
6
  * [0.5.0 - 26 May, 2016 (c802e883)](#0.5.0)
6
7
  * [0.4.3 - 10 May, 2016 (5ffdb5f2)](#0.4.3)
@@ -16,7 +17,33 @@
16
17
  * [0.1.0 - 26 Aug, 2015 (ef47972d)](#0.1.0)
17
18
 
18
19
  ## Details
19
- ### <a name = "LATEST">LATEST - 6 Jun, 2016 (8f6a39db)
20
+ ### <a name = "LATEST">LATEST - 15 Jun, 2016 (7ffb00c1)
21
+
22
+ * (GEM) update beaker-answers version to 0.6.0 (7ffb00c1)
23
+
24
+ * Merge pull request #21 from demophoon/task/master/pe-14555-meep-cutover (45c36f80)
25
+
26
+
27
+ ```
28
+ Merge pull request #21 from demophoon/task/master/pe-14555-meep-cutover
29
+
30
+ (PE-14555) Remove bash answers for 2016.2.0
31
+ ```
32
+ * (PE-14555) Remove bash answers for 2016.2.0 (7d0c9b35)
33
+
34
+
35
+ ```
36
+ (PE-14555) Remove bash answers for 2016.2.0
37
+
38
+ Prior to this commit we allowed generating either hiera or bash answers
39
+ for 2016.2.0.
40
+
41
+ This commit removes the bash answers, because future builds of 2016.2.0
42
+ will not accept them.
43
+ ```
44
+ ### <a name = "0.5.2">0.5.2 - 6 Jun, 2016 (bb16b018)
45
+
46
+ * (HISTORY) update beaker-answers history for gem release 0.5.2 (bb16b018)
20
47
 
21
48
  * (GEM) update beaker-answers version to 0.5.2 (8f6a39db)
22
49
 
@@ -1,5 +1,5 @@
1
1
  module BeakerAnswers
2
2
  module Version
3
- STRING = '0.5.2'
3
+ STRING = '0.6.0'
4
4
  end
5
5
  end
@@ -15,14 +15,7 @@ module BeakerAnswers
15
15
 
16
16
  return the_answers if @options[:masterless]
17
17
 
18
- case @format
19
- when :bash
20
- return generate_bash_answers(the_answers)
21
- when :hiera
22
- return generate_hiera_config
23
- else
24
- raise NotImplementedError, "Don't know how to generate answers for #{@format}"
25
- end
18
+ return generate_hiera_config
26
19
  end
27
20
 
28
21
  def generate_bash_answers(answers)
@@ -126,12 +119,7 @@ module BeakerAnswers
126
119
  end
127
120
 
128
121
  def installer_configuration_string(host)
129
- case @format
130
- when :bash then answer_string(host)
131
- when :hiera then answer_hiera
132
- else
133
- raise NotImplementedError, "Don't know how to generate for configuration #{@format}"
134
- end
122
+ answer_hiera
135
123
  end
136
124
  end
137
125
  end
@@ -188,15 +188,6 @@ describe BeakerAnswers::Version20162 do
188
188
  let( :answers ) { BeakerAnswers::Answers.create(ver, hosts, options) }
189
189
  let( :answer_hash ) { answers.answers }
190
190
 
191
- it 'adds orchestrator database answers to console' do
192
- expect( answer_hash['vm2'][:q_orchestrator_database_name] ).to be === 'pe-orchestrator'
193
- expect( answer_hash['vm2'][:q_orchestrator_database_user] ).to be === 'Orc3Str8R'
194
- end
195
-
196
- it 'generates valid answers if #answer_string is called' do
197
- expect( answers.answer_string(basic_hosts[2]) ).to match(/q_orchestrator_database_name=pe-orchestrator/)
198
- end
199
-
200
191
  context 'when generating a hiera config' do
201
192
  context 'for a monolithic install' do
202
193
  let( :basic_hosts ) { make_hosts( {'pe_ver' => ver }, 1 ) }
@@ -227,141 +218,4 @@ describe BeakerAnswers::Version20162 do
227
218
  include_examples 'pe.conf'
228
219
  end
229
220
  end
230
-
231
- # This spec is just providing a baseline for :bash answer generation/regression.
232
- # This and bash answer generation in 2016.2.0+ should be dropped once we've cutover.
233
- it 'continues to provide same set of :bash answers' do
234
- expect(answer_hash).to eq({
235
- "vm1" => {
236
- :q_install=>"y",
237
- :q_vendor_packages_install=>"y",
238
- :q_puppetagent_install=>"y",
239
- :q_verify_packages=>"y",
240
- :q_puppet_symlinks_install=>"y",
241
- :q_puppetagent_certname=>"vm1",
242
- :q_puppetmaster_install=>"y",
243
- :q_all_in_one_install=>"n",
244
- :q_puppet_enterpriseconsole_install=>"n",
245
- :q_puppetdb_install=>"n",
246
- :q_database_install=>"n",
247
- :q_puppetagent_server=>"vm1",
248
- :q_puppetdb_hostname=>"vm3",
249
- :q_puppetdb_port=>8081,
250
- :q_puppetmaster_dnsaltnames=>"vm1,ip.address.for.vm1,puppet",
251
- :q_puppetmaster_enterpriseconsole_hostname=>"vm2",
252
- :q_puppetmaster_enterpriseconsole_port=>443,
253
- :q_puppetmaster_certname=>"vm1",
254
- :q_pe_check_for_updates=>"n",
255
- :q_exit_for_nc_migrate=>"n",
256
- :q_enable_future_parser=>"n",
257
- :q_update_server_host=>"vm1",
258
- :q_install_update_server=>"y",
259
- :q_orchestrator_database_name=>"pe-orchestrator",
260
- :q_orchestrator_database_user=>"Orc3Str8R",
261
- :q_orchestrator_database_password=>"'~!@\#$%^*-/ aZ'",
262
- :q_database_host=>"vm3",
263
- :q_database_port=>5432,
264
- :q_use_application_services=>"y"
265
- },
266
- "vm2" => {
267
- :q_install=>"y",
268
- :q_vendor_packages_install=>"y",
269
- :q_puppetagent_install=>"y",
270
- :q_verify_packages=>"y",
271
- :q_puppet_symlinks_install=>"y",
272
- :q_puppetagent_certname=>"vm2",
273
- :q_puppetmaster_install=>"n",
274
- :q_all_in_one_install=>"n",
275
- :q_puppet_enterpriseconsole_install=>"y",
276
- :q_puppetdb_install=>"n",
277
- :q_database_install=>"n",
278
- :q_puppetagent_server=>"vm1",
279
- :q_puppetdb_hostname=>"vm3",
280
- :q_puppetdb_port=>8081,
281
- :q_puppetdb_database_name=>"pe-puppetdb",
282
- :q_puppetdb_database_user=>"mYpdBu3r",
283
- :q_puppetdb_database_password=>"'~!@\#$%^*-/ aZ'",
284
- :q_puppet_enterpriseconsole_auth_database_name=>"console_auth",
285
- :q_puppet_enterpriseconsole_auth_database_user=>"mYu7hu3r",
286
- :q_puppet_enterpriseconsole_auth_database_password=>"'~!@\#$%^*-/ aZ'",
287
- :q_puppet_enterpriseconsole_database_name=>"console",
288
- :q_puppet_enterpriseconsole_database_user=>"mYc0nS03u3r",
289
- :q_puppet_enterpriseconsole_database_password=>"'~!@\#$%^*-/ aZ'",
290
- :q_database_host=>"vm3",
291
- :q_database_port=>5432,
292
- :q_pe_database=>"y",
293
- :q_puppet_enterpriseconsole_inventory_hostname=>"vm2",
294
- :q_puppet_enterpriseconsole_inventory_certname=>"vm2",
295
- :q_puppet_enterpriseconsole_inventory_dnsaltnames=>"vm2",
296
- :q_puppet_enterpriseconsole_inventory_port=>8140,
297
- :q_puppet_enterpriseconsole_master_hostname=>"vm1",
298
- :q_puppet_enterpriseconsole_auth_user_email=>"'admin@example.com'",
299
- :q_puppet_enterpriseconsole_auth_password=>"'~!@\#$%^*-/ aZ'",
300
- :q_puppet_enterpriseconsole_httpd_port=>443,
301
- :q_puppet_enterpriseconsole_smtp_host=>"'vm2'",
302
- :q_puppet_enterpriseconsole_smtp_use_tls=>"'n'",
303
- :q_puppet_enterpriseconsole_smtp_port=>"'25'",
304
- :q_puppetmaster_certname=>"vm1",
305
- :q_pe_check_for_updates=>"n",
306
- :q_classifier_database_user=>"DFGhjlkj",
307
- :q_classifier_database_name=>"pe-classifier",
308
- :q_classifier_database_password=>"'~!@\#$%^*-/ aZ'",
309
- :q_activity_database_user=>"adsfglkj",
310
- :q_activity_database_name=>"pe-activity",
311
- :q_activity_database_password=>"'~!@\#$%^*-/ aZ'",
312
- :q_rbac_database_user=>"RbhNBklm",
313
- :q_rbac_database_name=>"pe-rbac",
314
- :q_rbac_database_password=>"'~!@\#$%^*-/ aZ'",
315
- :q_exit_for_nc_migrate=>"n",
316
- :q_enable_future_parser=>"n",
317
- :q_update_server_host=>"vm1",
318
- :q_use_application_services=>"y",
319
- :q_orchestrator_database_name=>"pe-orchestrator",
320
- :q_orchestrator_database_user=>"Orc3Str8R"
321
- },
322
- "vm3" => {
323
- :q_install=>"y",
324
- :q_vendor_packages_install=>"y",
325
- :q_puppetagent_install=>"y",
326
- :q_verify_packages=>"y",
327
- :q_puppet_symlinks_install=>"y",
328
- :q_puppetagent_certname=>"vm3",
329
- :q_puppetmaster_install=>"n",
330
- :q_all_in_one_install=>"n",
331
- :q_puppet_enterpriseconsole_install=>"n",
332
- :q_puppetdb_install=>"y",
333
- :q_database_install=>"y",
334
- :q_puppetagent_server=>"vm1",
335
- :q_puppetmaster_certname=>"vm1",
336
- :q_database_root_password=>"'=ZYdjiP3jCwV5eo9s1MBd'",
337
- :q_database_root_user=>"pe-postgres",
338
- :q_puppetdb_database_name=>"pe-puppetdb",
339
- :q_puppetdb_database_user=>"mYpdBu3r",
340
- :q_puppetdb_database_password=>"'~!@\#$%^*-/ aZ'",
341
- :q_puppet_enterpriseconsole_auth_database_name=>"console_auth",
342
- :q_puppet_enterpriseconsole_auth_database_user=>"mYu7hu3r",
343
- :q_puppet_enterpriseconsole_auth_database_password=>"'~!@\#$%^*-/ aZ'",
344
- :q_puppet_enterpriseconsole_database_name=>"console",
345
- :q_puppet_enterpriseconsole_database_user=>"mYc0nS03u3r",
346
- :q_puppet_enterpriseconsole_database_password=>"'~!@\#$%^*-/ aZ'",
347
- :q_database_host=>"vm3",
348
- :q_database_port=>5432,
349
- :q_classifier_database_user=>"DFGhjlkj",
350
- :q_classifier_database_name=>"pe-classifier",
351
- :q_classifier_database_password=>"'~!@\#$%^*-/ aZ'",
352
- :q_activity_database_user=>"adsfglkj",
353
- :q_activity_database_name=>"pe-activity",
354
- :q_activity_database_password=>"'~!@\#$%^*-/ aZ'",
355
- :q_rbac_database_user=>"RbhNBklm",
356
- :q_rbac_database_name=>"pe-rbac",
357
- :q_rbac_database_password=>"'~!@\#$%^*-/ aZ'",
358
- :q_exit_for_nc_migrate=>"n",
359
- :q_enable_future_parser=>"n",
360
- :q_update_server_host=>"vm1",
361
- :q_orchestrator_database_name=>"pe-orchestrator",
362
- :q_orchestrator_database_user=>"Orc3Str8R",
363
- :q_orchestrator_database_password=>"'~!@\#$%^*-/ aZ'"
364
- },
365
- })
366
- end
367
221
  end
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.5.2
4
+ version: 0.6.0
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-06-07 00:00:00.000000000 Z
12
+ date: 2016-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec