Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Support selecting disk size, number and type in the portal
Browse files Browse the repository at this point in the history
This commit adds support for selecting disk size, number and type within
the portal.

Closes #146
  • Loading branch information
russcam committed Jul 17, 2018
1 parent b83a644 commit 4ad6d20
Showing 1 changed file with 67 additions and 3 deletions.
70 changes: 67 additions & 3 deletions src/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,70 @@
"osPlatform": "Linux",
"count": "[steps('nodesStep').dataNodes.vmDataNodeCount]"
},
{
"name": "vmDataDiskCount",
"type": "Microsoft.Common.TextBox",
"label": "Number of managed disks to attach",
"defaultValue": "1",
"toolTip": "Number of disks to attach to each data node in RAID 0 setup. If the number of disks selected is more than can be attached to the selected data node VM size, the maximum number of disks that can be attached will be used. If 1 disk is selected, it is not RAIDed. If 0 disks are selected, the temporary disk will be used to store Elasticsearch data. IMPORTANT: The temporary disk is ephemeral in nature so be sure you know the trade-offs when choosing 0 disks.",
"constraints": {
"required": true,
"regex": "^\\d+$",
"validationMessage": "Value must be numeric and greater than or equal to 0"
}
},
{
"name": "vmDataDiskSize",
"type": "Microsoft.Common.DropDown",
"label": "Size of each managed disk",
"visible": "[greater(steps('nodesStep').dataNodes.vmDataDiskCount, 0)]",
"defaultValue": "Large",
"toolTip": "The size of each data disk to attach to each data node",
"constraints": {
"allowedValues": [
{
"label": "Small (128Gb)",
"value": "Small"
},
{
"label": "Medium (512Gb)",
"value": "Medium"
},
{
"label": "Large (1024Gb)",
"value": "Large"
},
{
"label": "Extra Large (2048Gb)",
"value": "XLarge"
},
{
"label": "Extra Extra Large (4095Gb)",
"value": "XXLarge"
}
]
}
},
{
"name": "storageAccountType",
"type": "Microsoft.Common.DropDown",
"label": "Type of managed disks",
"visible": "[greater(steps('nodesStep').dataNodes.vmDataDiskCount, 0)]",
"defaultValue": "Default",
"toolTip": "The storage type of managed disks. The default will be Premium disks for VMs that support Premium disks and Standard disks for those that do not.",
"constraints": {
"allowedValues": [
{
"label": "Standard disks",
"value": "Standard"
},
{
"label": "Default disks for VM SKU",
"value": "Default"
}
]
}
},
{
"name": "dataNodesAreMasterEligible",
"type": "Microsoft.Common.OptionsGroup",
Expand Down Expand Up @@ -1266,10 +1330,10 @@
"kibanaAdditionalYaml": "",
"jumpbox": "[steps('externalAccessStep').jumpbox]",
"vmSizeDataNodes": "[steps('nodesStep').dataNodes.vmSizeDataNodes]",
"vmDataDiskCount": 64,
"vmDataDiskSize": "Large",
"vmDataDiskCount": "[steps('nodesStep').dataNodes.vmDataDiskCount]",
"vmDataDiskSize": "[steps('nodesStep').dataNodes.vmDataDiskSize]",
"vmDataNodeCount": "[steps('nodesStep').dataNodes.vmDataNodeCount]",
"storageAccountType": "Default",
"storageAccountType": "[steps('nodesStep').dataNodes.storageAccountType]",
"dataNodesAreMasterEligible": "[steps('nodesStep').dataNodes.dataNodesAreMasterEligible]",
"vmHostNamePrefix": "[steps('nodesStep').vmHostNamePrefix]",
"vmSizeMasterNodes": "[steps('nodesStep').masterNodes.vmSizeMasterNodes]",
Expand Down

0 comments on commit 4ad6d20

Please sign in to comment.