зеркало из
1
0
Форкнуть 0
azure-quickstart-templates/hortonworks-on-centos/cluster-node-16disk.json

282 строки
13 KiB
JSON

{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters" : {
"vmName": {
"type": "string"
},
"region": {
"type": "string"
},
"availabilitySet": {
"type": "string"
},
"storageAccountName" : {
"type": "string"
},
"subnetResourceId": {
"type": "string"
},
"dnsName" : {
"type": "string"
},
"ipAddress": {
"type": "string"
},
"vmSize": {
"type": "string"
},
"vmSpec": {
"type": "object"
}
},
"variables": {
"nicName": "[concat(parameters('vmName'), '-nic')]",
"publicIPAddressName": "[concat(parameters('vmName'), '-publicIP')]"
},
"outputs": {
"fqdn": {
"type": "string",
"value": "[reference(variables('publicIPAddressName')).dnsSettings.fqdn]"
}
},
"resources": [
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('publicIPAddressName')]",
"location": "[parameters('region')]",
"properties": {
"publicIPAllocationMethod": "Dynamic",
"dnsSettings": {
"domainNameLabel": "[parameters('dnsName')]"
}
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/networkInterfaces",
"name": "[concat(variables('nicName'))]",
"location": "[parameters('region')]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]"
],
"properties": {
"ipConfigurations": [{
"name": "ipconfig",
"properties": {
"privateIPAllocationMethod": "Static",
"privateIPAddress": "[parameters('ipAddress')]",
"subnet": {
"id": "[parameters('subnetResourceId')]"
},
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]"
}
}
}]
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('vmName')]",
"location": "[parameters('region')]",
"dependsOn": [
"[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
],
"properties": {
"availabilitySet": {
"id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('availabilitySet'))]"
},
"hardwareProfile": {
"vmSize": "[parameters('vmSize')]"
},
"osProfile": {
"computername": "[parameters('vmName')]",
"adminUsername": "[parameters('vmSpec').adminUserName]",
"adminPassword": "[parameters('vmSpec').adminPassword]",
"linuxConfiguration" : {
"disablePasswordAuthentication": "true",
"ssh": {
"publicKeys": [
{
"keyData": "[parameters('vmSpec').publicSSHCert]",
"path": "[concat('/home/',parameters('vmSpec').adminUserName,'/.ssh/authorized_keys')]"
}
]
}
}
},
"storageProfile": {
"imageReference": {
"publisher": "OpenLogic",
"offer": "CentOS",
"sku": "6.5",
"version":"6.5.201503"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
},
"dataDisks": [
{
"name": "datadisk0",
"diskSizeGB": "1023",
"lun": 0,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk0.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk1",
"diskSizeGB": "1023",
"lun": 1,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk1.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk2",
"diskSizeGB": "1023",
"lun": 2,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk2.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk3",
"diskSizeGB": "1023",
"lun": 3,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk3.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk4",
"diskSizeGB": "1023",
"lun": 4,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk4.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk5",
"diskSizeGB": "1023",
"lun": 5,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk5.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk6",
"diskSizeGB": "1023",
"lun": 6,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk6.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk7",
"diskSizeGB": "1023",
"lun": 7,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk7.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk8",
"diskSizeGB": "1023",
"lun": 8,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk8.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk9",
"diskSizeGB": "1023",
"lun": 9,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk9.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk10",
"diskSizeGB": "1023",
"lun": 10,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk10.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk11",
"diskSizeGB": "1023",
"lun": 11,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk11.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk12",
"diskSizeGB": "1023",
"lun": 12,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk12.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk13",
"diskSizeGB": "1023",
"lun": 13,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk13.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk14",
"diskSizeGB": "1023",
"lun": 14,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk14.vhd')]"
},
"createOption": "Empty"
},
{
"name": "datadisk15",
"diskSizeGB": "1023",
"lun": 15,
"vhd": {
"Uri": "[concat('http://', parameters('storageAccountName'), '.blob.core.windows.net/vhds/', parameters('vmName'), '-datadisk15.vhd')]"
},
"createOption": "Empty"
}
]
},
"networkProfile": {
"networkInterfaces" : [{
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(variables('nicName')))]"
}]
}
}
}
]
}