-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetadata.rb
557 lines (517 loc) · 16.6 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
name 'virtualmonkey'
maintainer 'RightScale, Inc.'
maintainer_email '[email protected]'
license 'Apache 2.0'
description 'Installs/Configures VirtualMonkey'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '13.10.2'
supports "centos"
supports "redhat"
supports "ubuntu"
depends "rightscale"
depends "rs-jenkins"
depends "marker"
depends "ruby"
recipe "virtualmonkey::setup_git",
"Setup Git configuration for virtualmonkey."
recipe "virtualmonkey::setup_rest_connection",
"Setup the rest_connection library."
recipe "virtualmonkey::setup_virtualmonkey",
"Setup virtualmonkey."
recipe "virtualmonkey::setup_rocketmonkey",
"Setup rocketmonkey."
recipe "virtualmonkey::update_fog_credentials",
"Setup or update existing credentials for fog configuration."
recipe "virtualmonkey::update_silver_creds",
"Setup or update existing credentials for testing in windows environment."
recipe "virtualmonkey::update_dns_providers",
"Setup or update existing credentials for dns access in linux testing."
recipe "virtualmonkey::setup_test_config",
"Setup test specific configuration."
recipe "virtualmonkey::update_stids",
"Update ServerTemplate IDs"
recipe "virtualmonkey::ruby",
"Select which version of ruby to install"
{
:aws_access_key_id => [
"AWS_ACCESS_KEY_ID",
"Access Key ID for AWS"
],
:aws_secret_access_key => [
"AWS_SECRET_ACCESS_KEY",
"Secret Access Key for AWS"
],
:aws_publish_key => [
"AWS_PUBLISH_KEY",
"Access Key ID for AWS Publish Account"
],
:aws_publish_secret_key => [
"AWS_PUBLISH_SECRET_KEY",
"Secret Access Key for AWS Publish Account"
],
:aws_access_key_id_test => [
"AWS_ACCESS_KEY_ID_TEST_ACCT",
"Access Key ID for AWS Test Account"
],
:aws_secret_access_key_test => [
"AWS_SECRET_ACCESS_KEY_TEST_ACCT",
"Secret Access Key for AWS Test Account"
],
:aws_access_key_id_rstemp => [
"AWS_ACCESS_KEY_ID_RSTEMP",
"Access Key ID for AWS RS ServerTemplates Account"
],
:aws_secret_access_key_rstemp => [
"AWS_SECRET_ACCESS_KEY_RSTEMP",
"Secret Access Key for the AWS RS ServerTemplates Account"
],
:rackspace_api_key => [
"RACKSPACE_API_KEY",
"API Key for Rackspace"
],
:rackspace_username => [
"RACKSPACE_USERNAME",
"Username for Rackspace"
],
:rackspace_api_uk_key_test => [
"RACKSPACE_API_UK_KEY_TEST",
"API Key for Rackspace UK Test Account"
],
:rackspace_uk_username_test => [
"RACKSPACE_UK_USERNAME_TEST",
"Username for Rackspace UK Test Account"
],
:softlayer_api_key => [
"SOFTLAYER_SECRET_ACCESS_KEY",
"API Key for Softlayer"
],
:softlayer_username => [
"SOFTLAYER_ACCESS_KEY_ID",
"Username for Softlayer"
],
:softlayer_auth_url => [
"SOFTLAYER_AUTH_URL",
"Auth URL for Softlayer"
],
:rackspace_managed_auth_key => [
"RACKSPACE_MANAGED_AUTH_KEY_US_TEST",
"Auth Key for Rackspace Managed US Test Account"
],
:rackspace_managed_username => [
"RACKSPACE_MANAGED_USERNAME_US_TEST",
"Username for Rackspace Managed US Test Account"
],
:rackspace_managed_uk_auth_key => [
"RACKSPACE_MANAGED_AUTH_KEY_UK_TEST",
"Auth Key for Rackspace Managed UK Test Account"
],
:rackspace_managed_uk_username => [
"RACKSPACE_MANAGED_USERNAME_UK_TEST",
"Username for Rackspace Managed UK Test Account"
],
:rackspace_auth_url_uk_test => [
"RACKSPACE_AUTH_URL_UK_TEST",
"Auth URL for Rackspace UK Test Account"
],
:google_access_key_id => [
"GC_ACCESS_KEY_ID",
"Access Key ID for Google"
],
:google_secret_access_key => [
"GC_SECRET_ACCESS_KEY",
"Secret Access Key for Google"
],
:azure_access_key_id => [
"AZURE_ACCESS_KEY_ID",
"Access Key ID for Azure"
],
:azure_secret_access_key => [
"AZURE_SECRET_ACCESS_KEY",
"Secret Access Key for Azure"
],
:openstack_access_key_id => [
"OPENSTACK_FOLSOM_ACCESS_KEY_ID",
"Access Key ID for Openstack Folsom"
],
:openstack_secret_access_key => [
"OPENSTACK_FOLSOM_SECRET_ACCESS_KEY",
"Secret Access Key for Openstack Folsom"
],
:openstack_auth_url => [
"OPENSTACK_AUTH_URL",
"Auth URL for Openstack Folsom"
],
:raxprivatev3_access_key_id => [
"RACKSPACE_PRIVATEV3_ACCESS_KEY_ID",
"Access Key ID for Rackspace Private V3"
],
:raxprivatev3_secret_access_key => [
"RACKSPACE_PRIVATEV3_SECRET_ACCESS_KEY",
"Secret Access Key for Rackspace Private V3"
],
:raxprivatev3_auth_url => [
"RACKSPACE_PRIVATEV3_AUTH_URL",
"Auth URL for Rackspace Private V3"
],
:hp_access_key_id => [
"HP_ACCESS_KEY_ID",
"Access Key ID for HP"
],
:hp_secret_access_key => [
"HP_SECRET_ACCESS_KEY",
"Secret Access Key for HP"
],
:hp_auth_url => [
"HP_AUTH_URL",
"Auth URL for HP"
],
:s3_bucket => [
"S3_BUCKET_NAME",
"The Name of the S3 Bucket to Store Monkey Reports"
],
}.each do |attribute_name, value|
display_name, description = value
attribute "virtualmonkey/fog/#{attribute_name}",
:display_name => display_name,
:description => description,
:required => "required",
:recipes => ["virtualmonkey::update_fog_credentials"]
end
{
:aws_access_key_id => [
"AWS_ACCESS_KEY",
"Access key for AWS"
],
:aws_secret_access_key => [
"AWS_SECRET_ACCESS_KEY",
"Secret access key for AWS"
],
:silver_qa_admin_password => [
"SILVER_QA_ADMIN_PASSWORD",
"The administrator pasword for silver QA"
],
:silver_qa_user_password => [
"SILVER_QA_USER_PASSWORD",
"The password for the silver QA user"
],
:silver_qa_db_password => [
"SILVER_QA_DB_PASSWORD",
"The password for the silver QA database"
],
:dnsmadeeasy_test_password => [
"DNSMADEEASY_TEST_PASSWORD",
"The password for dnsmadeeasy dns provider"
],
:dnsmadeeasy_test_user => [
"DNSMADEEASY_TEST_USER",
"The dnsmadeeasy test user"
],
:rackspace_auth_key => [
"RACKSPACE_AUTH_KEY",
"The key for Rackspace"
],
:rackspace_username => [
"RACKSPACE_USERNAME",
"THe Rackspace user"
],
:rackspace_auth_key_uk => [
"RACKSPACE_AUTH_KEY_UK",
"The key for Rackspace UK"
],
:rackspace_username_uk => [
"RACKSPACE_USERNAME_UK",
"The user name for Rackspace UK"
],
:rackspace_rackconnect_auth_key => [
"RACKSPACE_RACKCONNECT_AUTH_KEY",
"The key for Rackspace Rackconnect"
],
:rackspace_rackconnect_username => [
"RACKSPACE_RACKCONNECT_USERNAME",
"The username for Rackspace Rackconnect"
],
:silver_was_acct_name => [
"SILVER_WAS_ACCT_NAME",
"The account name for silver was"
],
:silver_was_acct_key => [
"SILVER_WAS_ACCT_KEY",
"The key for silver was account"
],
:softlayer_access_key_id => [
"SOFTLAYER_ACCESS_KEY_ID",
"The key for Softlayer"
],
:softlayer_secret_access_key => [
"SOFTLAYER_SECRET_ACCESS_KEY",
"The secret key for Softlayer"
],
:openstack_folsom_access_key_id => [
"OPENSTACK_FOLSOM_ACCESS_KEY_ID",
"The key for OpenStack Folsom"
],
:openstack_folsom_secret_access_key => [
"OPENSTACK_FOLSOM_SECRET_ACCESS_KEY",
"The key for OpenStack Folsom"
],
:openstack_auth_url => [
"OPENSTACK_AUTH_URL",
"The auth url for Openstack"
],
:publish_test_user => [
"PUBLISH_TEST_USER",
"The API user for PUBLISH account"
],
:publish_test_password => [
"PUBLISH_TEST_PASSWORD",
"The password for API use on PUBLISH account"
],
}.each do |attribute_name, value|
display_name, description = value
attribute "virtualmonkey/silver_creds/#{attribute_name}",
:display_name => display_name,
:description => description,
:required => "optional",
:recipes => ["virtualmonkey::update_silver_creds"]
end
{
:api_key => [
"DNS_PROVIDER_API_KEY",
"The key to access dns provider"
],
:secret_key => [
"DNS_PROVIDER_SECRET_KEY",
"The secret key to access dns provider"
],
}.each do |attribute_name, value|
display_name, description = value
attribute "virtualmonkey/dns_provider/#{attribute_name}",
:display_name => display_name,
:description => description,
:required => "optional",
:recipes => ["virtualmonkey::update_dns_providers"]
end
attribute "virtualmonkey/git/user",
:display_name => "Git Username",
:description =>
"Git Username to be used with github",
:required => "required",
:recipes => ["virtualmonkey::setup_git"]
attribute "virtualmonkey/git/email",
:display_name => "Git Email",
:description =>
"Git email address to be used with github",
:required => "required",
:recipes => ["virtualmonkey::setup_git"]
attribute "virtualmonkey/git/ssh_key",
:display_name => "SSH key for Git",
:description =>
"SSH key for using with Git",
:required => "required",
:recipes => ["virtualmonkey::setup_git"]
attribute "virtualmonkey/git/host_name",
:display_name => "Git Hostname",
:description =>
"Git Hostname for adding to ssh config",
:required => "required",
:recipes => ["virtualmonkey::setup_git"]
attribute "virtualmonkey/rest/right_passwd",
:display_name => "RightScale password",
:description =>
"RightScale password to connect to the API",
:required => "required",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/right_email",
:display_name => "RightScale Email",
:description =>
"RightScale email address to connect to the API",
:required => "required",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/right_acct_id",
:display_name => "RightScale account ID",
:description =>
"RightScale account ID used to connect to the API",
:required => "required",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/right_subdomain",
:display_name => "RightScale Subdomain",
:description =>
"RightScale subdomain. Example. 'my', 'moo.test'",
:required => "required",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/ssh_key",
:display_name => "API user key",
:description =>
"API user key used by rest_connection",
:required => "required",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/ssh_pub_key",
:display_name => "Public key of Jenkins master",
:description =>
"Public key of Jenkins master that should be given access",
:required => "optional",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/azure_hack_on",
:display_name => "Azure Hack ON/OFF",
:description =>
"Whether to enable/disable Azure retry hack",
:required => "optional",
:choice => ["true", "false"],
:default => "true",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/azure_hack_retry_count",
:display_name => "Azure Hack Retry Count",
:description =>
"Number of retries for Azure launch failures. Example: 5",
:required => "optional",
:default => "5",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/azure_hack_sleep_seconds",
:display_name => "Azure Hack Sleep Seconds",
:description =>
"Number of seconds to sleep between attempts on relaunches",
:required => "optional",
:default => "60",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/api_logging",
:display_name => "API Logging",
:description =>
"Whether to enable/disable API logging",
:required => "optional",
:choice => ["true", "false"],
:default => "false",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/rest/legacy_shard",
:display_name => "Legacy Shard",
:description => "Set this option to 'true' if you want to test on a legacy shard",
:choice => ["true", "false"],
:required => "optional",
:default => "false",
:recipes => ["virtualmonkey::setup_rest_connection"]
attribute "virtualmonkey/test_config/knife_pem_key",
:display_name => "Knife PEM Key",
:description =>
"The PEM key used by the knife commands to communicate with hosted" +
" chef server",
:required => "required",
:recipes => ["virtualmonkey::setup_test_config"]
attribute "virtualmonkey/virtualmonkey/collateral_repo_url",
:display_name => "Collateral Repo URL",
:description =>
"Git URL for collateral project",
:required => "required",
:recipes => ["virtualmonkey::setup_virtualmonkey"]
attribute "virtualmonkey/virtualmonkey/collateral_repo_branch",
:display_name => "Collateral Repo Branch",
:description =>
"Git branch for collateral project",
:required => "required",
:recipes => ["virtualmonkey::setup_virtualmonkey"]
attribute "virtualmonkey/virtualmonkey/right_api_objects_repo_url",
:display_name => "Right API Objects Repo URL",
:description =>
"Git repository URL for Right API Objects",
:required => "required",
:recipes => ["virtualmonkey::setup_virtualmonkey"]
attribute "virtualmonkey/virtualmonkey/right_api_objects_repo_branch",
:display_name => "Right API Objects Repo Branch",
:description =>
"Git branch for Right API Objects",
:required => "required",
:recipes => ["virtualmonkey::setup_virtualmonkey"]
attribute "virtualmonkey/virtualmonkey/windows_admin_password",
:display_name => "Windows Administrator Password",
:description =>
"The Administrator password for connecting to Windows servers",
:required => "required",
:recipes => ["virtualmonkey::setup_virtualmonkey"]
attribute "virtualmonkey/rocketmonkey/repo_url",
:display_name => "RocketMonkey Repo URL",
:description =>
"Git repository URL for RocketMonkey",
:required => "required",
:recipes => ["virtualmonkey::setup_rocketmonkey"]
attribute "virtualmonkey/rocketmonkey/repo_branch",
:display_name => "RocketMonkey Repo Branch",
:description =>
"Git branch for VirtualMonkey project",
:required => "required",
:recipes => ["virtualmonkey::setup_rocketmonkey"]
attribute "virtualmonkey/rocketmonkey/servertemplate_mapping_file_name",
:display_name => "Rocket Monkey Server Template Mapping File Name",
:description =>
"The server template mapping file name you want the Rocket Monkey to use when generating Virtual Monkey Jenkins jobs. This is required for all next generation collateral.",
:required => "recommended",
:recipes => ["virtualmonkey::setup_rocketmonkey"]
attribute "virtualmonkey/rocketmonkey/google_drive_user",
:display_name => "Google Drive User",
:description =>
"User name used by the googleget and googleput scripts for downloading and uploading test matrices from Google Drive.",
:required => "required",
:recipes => ["virtualmonkey::setup_rocketmonkey"]
attribute "virtualmonkey/rocketmonkey/google_drive_password",
:display_name => "Google Drive Password",
:description =>
"Password used by the googleget and googleput scripts for downloading and uploading test matrices from Google Drive.",
:required => "required",
:recipes => ["virtualmonkey::setup_rocketmonkey"]
attribute "virtualmonkey/test/smtp_username",
:display_name => "SMTP Username",
:description =>
"The SMTP username for lamp's check smtp test",
:required => "required",
:recipes => ["virtualmonkey::setup_test_config"]
attribute "virtualmonkey/test/smtp_password",
:display_name => "SMTP Password",
:description =>
"The SMTP password for lamp's check smtp test",
:required => "required",
:recipes => ["virtualmonkey::setup_test_config"]
{
:east => [
"0 - AWS-East",
"AWS ssh launch key for AWS-East"
],
:eu => [
"1 - AWS EU",
"AWS ssh launch key for AWS EU"
],
:us_west => [
"2 - AWS US-West",
"AWS ssh launch key for AWS US-West"
],
:ap_singapore => [
"3 - AWS AP-Singapore",
"AWS ssh launch key for AWS AP-Singapore"
],
:ap_tokyo => [
"4 - AWS AP-Tokyo",
"AWS ssh launch key for AWS AP-Tokyo"
],
:us_oregon => [
"5 - AWS US-Oregon",
"AWS ssh launch key for AWS US-Oregon"
],
:sa_sao_paolo => [
"6 - AWS SA-Sao Paulo",
"AWS ssh launch key for AWS SA-Sao Paulo"
],
:ap_sydney => [
"7 - AWS AP-Sydney",
"AWS ssh launch key for AWS AP-Sydney"
],
}.each do |attribute_name, value|
display_name, description = value
attribute "virtualmonkey/aws_default_ssh_key_ids/#{attribute_name}",
:display_name => display_name,
:description => description,
:required => "optional",
:recipes => ["virtualmonkey::setup_virtualmonkey"]
end
attribute "virtualmonkey/ruby/version",
:display_name => "Ruby Version",
:description => "Version of ruby to install - Currently the only valid values for this input are '1.9' and '1.8'",
:choice => ['1.8','1.9'],
:required => "optional",
:recipes => ["virtualmonkey::ruby"],
:default => "1.9"