|
326 | 326 | "fileUris": [
|
327 | 327 | "[concat(parameters('_artifactsLocation'), '/zookeeper_startup.sh')]"
|
328 | 328 | ],
|
329 |
| - "commandToExecute": "[concat('sh zookeeper_startup.sh ', copyIndex(), ' ', variables('zookeeperInstanceCount'))]", |
330 |
| - "Restart": "true" |
| 329 | + "commandToExecute": "[concat('sh zookeeper_startup.sh ', copyIndex(), ' ', variables('zookeeperInstanceCount'))]" |
| 330 | + } |
| 331 | + }, |
| 332 | + "dependsOn": [ |
| 333 | + "[concat('Microsoft.Compute/virtualMachines/', 'zookeeper', copyIndex())]" |
| 334 | + ] |
| 335 | + }, |
| 336 | + { |
| 337 | + "type": "Microsoft.Compute/virtualMachines/extensions", |
| 338 | + "name": "[concat('zookeeper', copyIndex(), '/zookeeperExtension')]", |
| 339 | + "apiVersion": "2015-05-01-preview", |
| 340 | + "location": "[resourceGroup().location]", |
| 341 | + "copy": { |
| 342 | + "name": "zookeeperExtLoop", |
| 343 | + "count": "[variables('zookeeperInstanceCount')]" |
| 344 | + }, |
| 345 | + "properties": { |
| 346 | + "publisher": "Microsoft.OSTCExtensions", |
| 347 | + "type": "OSPatchingForLinux", |
| 348 | + "typeHandlerVersion": "2.9", |
| 349 | + "Settings": { |
| 350 | + "disabled": false, |
| 351 | + "stop": false, |
| 352 | + "category": "ImportantAndRecommended", |
| 353 | + "oneoff": true |
331 | 354 | }
|
332 | 355 | },
|
333 | 356 | "dependsOn": [
|
|
457 | 480 | "[concat(parameters('_artifactsLocation'), '/autopart.sh')]",
|
458 | 481 | "[concat(parameters('_artifactsLocation'), '/postgres_startup.sh')]"
|
459 | 482 | ],
|
460 |
| - "commandToExecute": "[concat('sh postgres_startup.sh ', parameters('clusterName'), ' ', variables('zookeeperInstanceCount'), ' ', variables('postgresInstanceCount'), ' ', copyIndex(), ' ', parameters('adminUsername'), ' \"', parameters('adminPassword'), '\" ')]", |
461 |
| - "Restart": "true" |
| 483 | + "commandToExecute": "[concat('sh postgres_startup.sh ', parameters('clusterName'), ' ', variables('zookeeperInstanceCount'), ' ', variables('postgresInstanceCount'), ' ', copyIndex(), ' ', parameters('adminUsername'), ' \"', parameters('adminPassword'), '\" ')]" |
| 484 | + } |
| 485 | + }, |
| 486 | + "dependsOn": [ |
| 487 | + "[concat('Microsoft.Compute/virtualMachines/', 'postgres', copyIndex())]" |
| 488 | + ] |
| 489 | + }, |
| 490 | + { |
| 491 | + "type": "Microsoft.Compute/virtualMachines/extensions", |
| 492 | + "name": "[concat('postgres', copyIndex(), '/postgresExtension')]", |
| 493 | + "apiVersion": "2015-05-01-preview", |
| 494 | + "location": "[resourceGroup().location]", |
| 495 | + "copy": { |
| 496 | + "name": "postgresExtLoop", |
| 497 | + "count": "[variables('postgresInstanceCount')]" |
| 498 | + }, |
| 499 | + "properties": { |
| 500 | + "publisher": "Microsoft.OSTCExtensions", |
| 501 | + "type": "OSPatchingForLinux", |
| 502 | + "typeHandlerVersion": "2.9", |
| 503 | + "Settings": { |
| 504 | + "disabled": false, |
| 505 | + "stop": false, |
| 506 | + "category": "ImportantAndRecommended", |
| 507 | + "oneoff": true |
462 | 508 | }
|
463 | 509 | },
|
464 | 510 | "dependsOn": [
|
|
0 commit comments