-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeegfs-storage-hdd.json
463 lines (463 loc) · 17.9 KB
/
beegfs-storage-hdd.json
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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmssName": {
"type": "string"
},
"vmsscount": {
"type": "int"
},
"vmcount": {
"type": "int"
},
"beeGFSNodeSettings": {
"type": "object"
},
"nodeOSSettings": {
"type": "object"
}
},
"variables": {
"networkApiVersion": "2016-06-01",
"insightsApiVersion": "2015-04-01",
"computeApiVersion": "2016-04-30-preview",
"location": "[resourceGroup().location]",
"beeGFSNodeSettings": "[parameters('beeGFSNodeSettings')]",
"nodeOSSettings": "[parameters('nodeOSSettings')]",
"sshKeyPath": "[concat('/home/',variables('nodeOSSettings').adminUserName,'/.ssh/authorized_keys')]",
"virtualNetworkName": "beegfs-vnet",
"subnetName": "beegfs-subnet",
"nicName": "[concat(parameters('vmssName'), 'nic')]",
"ipConfigName": "[concat(parameters('vmssName'), 'ipconfig')]",
"installParams": "[concat(variables('beeGFSNodeSettings').MasterName,' ', variables('beeGFSNodeSettings').nodeType,' ', variables('beeGFSNodeSettings').RAIDLevel)]",
"metadataDiskArray": [
{
"diskSizeGB": "[variables('beeGFSNodeSettings').metadataDiskSize]",
"lun": "0",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').metadataDiskSize]",
"lun": "1",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').metadataDiskSize]",
"lun": "2",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').metadataDiskSize]",
"lun": "3",
"createOption": "Empty"
}
],
"storageDiskArray": [
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 0)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 1)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 2)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 3)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 4)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 5)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 6)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 7)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 8)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 9)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 10)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 11)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 12)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 13)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 14)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 15)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 16)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 17)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 18)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 19)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 20)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 21)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 22)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 23)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 24)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 25)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 26)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 27)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 28)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 29)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 30)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 31)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 32)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 33)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 34)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 35)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 36)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 37)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 38)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 39)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 40)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 41)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 42)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 43)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 44)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 45)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 46)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 47)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 48)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 49)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 50)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 51)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 52)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 53)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 54)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 55)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 56)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 57)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 58)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 59)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 60)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 61)]",
"createOption": "Empty"
},
{
"diskSizeGB": "[variables('beeGFSNodeSettings').storageDiskSize]",
"lun": "[add(variables('beeGFSNodeSettings').numMetadataDisks, 62)]",
"createOption": "Empty"
}
]
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachineScaleSets",
"name": "[concat(parameters('vmssName'),copyIndex())]",
"apiVersion": "[variables('computeApiVersion')]",
"location": "[variables('location')]",
"sku": {
"name": "[variables('beeGFSNodeSettings').VMsku]",
"tier": "Standard",
"capacity": "[parameters('vmcount')]"
},
"copy": {
"name": "[parameters('vmssName')]",
"count": "[parameters('vmsscount')]"
},
"properties": {
"overprovision": "false",
"upgradePolicy": {
"mode": "Manual"
},
"virtualMachineProfile": {
"storageProfile": {
"osDisk": {
"createOption": "FromImage",
"managedDisk": {
"storageAccountType": "Standard_LRS"
}
},
"imageReference": "[variables('nodeOSSettings').imageReference]",
"dataDisks": "[concat(take(variables('storageDiskArray'),variables('beeGFSNodeSettings').numStorageDisks), take(variables('metadataDiskArray'), variables('beeGFSNodeSettings').numMetadataDisks))]"
},
"osProfile": {
"computerNamePrefix": "[parameters('vmssName')]",
"adminUsername": "[variables('nodeOSSettings').adminUserName]",
"linuxConfiguration": {
"disablePasswordAuthentication": "true",
"ssh": {
"publicKeys": [
{
"path": "[variables('sshKeyPath')]",
"keyData": "[variables('nodeOSSettings').sshKeyData]"
}
]
}
}
},
"networkProfile": {
"networkInterfaceConfigurations": [
{
"name": "[variables('nicName')]",
"properties": {
"primary": "true",
"ipConfigurations": [
{
"name": "[variables('ipConfigName')]",
"properties": {
"subnet": {
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'), '/subnets/', variables('subnetName'))]"
}
}
}
]
}
}
]
},
"extensionProfile": {
"extensions": [
{
"name": "[concat('lapextension',copyIndex())]",
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[uri(deployment().properties.templateLink.uri, 'beegfsscripts/install_beegfs_storage.sh')]"
],
"commandToExecute": "[concat('bash install_beegfs_storage.sh ', variables('installParams'))]"
}
}
}
]
}
}
}
}
]
}