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

341 строка
14 KiB
JSON

{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters" : {
"adminUserName": {
"type": "string",
"defaultValue": "testuser",
"metadata": {
"Description": "Admin user name for the Virtual Machines"
}
},
"adminPassword": {
"type": "securestring",
"defaultValue": "Eur32#1e",
"metadata": {
"Description": "Admin password for the Virtual Machines"
}
},
"storageAccountPrefix": {
"type": "string",
"defaultValue": "defaultStorageAccountPrefix",
"metadata": {
"Description": "Unique namespace for the Storage Account where the Virtual Machine's disks will be placed"
}
},
"dnsNamePrefix": {
"type": "string",
"defaultValue": "defaultDnsNamePrefix",
"metadata": {
"Description": "Unique public dns name where the Virtual Machines will be exposed"
}
},
"region": {
"type": "string",
"metadata": {
"Description": "Location where resources will be provisioned"
}
},
"storageAccountType": {
"type": "string",
"defaultValue": "Standard_LRS",
"metadata": {
"Description": "The type of the Storage Account to be created (Default to Standard_LRS)"
}
},
"virtualNetworkName": {
"type": "string",
"defaultValue": "hortonworksVnet",
"metadata": {
"Description": "The name of the virtual network provisioned for the deployment"
}
},
"subnetName": {
"type": "string",
"defaultValue": "hortonworksSubnet",
"metadata": {
"Description": "Subnet name for the virtual network where resources will be provisioned"
}
},
"addressPrefix": {
"type": "string",
"defaultValue": "10.0.0.0/24",
"metadata": {
"Description": "The network address space for the virtual network"
}
},
"subnetPrefix": {
"type": "string",
"defaultValue": "10.0.0.0/24",
"metadata": {
"Description": "The network address space for the virtual subnet"
}
},
"nodeAddressPrefix": {
"type": "string",
"defaultValue": "10.0.0.",
"metadata": {
"Description": "The IP address prefix that will be used for constructing private IP address for each node in the cluster"
}
},
"tshirtSize": {
"type": "string",
"defaultValue": "Eval",
"allowedValues": [
"Eval",
"Small",
"Medium"
],
"metadata": {
"Description": "T-shirt size of the Couchbase cluster"
}
},
"publicSSHCert":{
"type" : "string",
"defaultVal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xmyfA7J8j4Oni6DxZwuKtfPL4HAdAcpRO5XdThP2WaPdLfCz3asSCE2K5IJ7rXfmiQ9oAptqNlJfmg==",
"metadata": {
"Description": "The base64 representation of the certificate used for SSH login. See the readme for details."
}
},
"keyVaultResourceGroup": {
"type": "string",
"metadata": {
"Description": "The resource group containing the key vault which provides the private key used for SSH login. See the readme for details."
}
},
"keyVaultName": {
"type": "string",
"metadata": {
"Description": "The name of the key vault which provides the private key used for SSH login. See the readme for details."
}
},
"keyUri": {
"type": "string",
"metadata": {
"Description": "The url of the private key used for SSH login. See the readme for details."
}
}
},
"variables": {
"scriptsUri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/tree/master/hortonworks-on-centos",
"storageAccount": {
"prefix": "[parameters('storageAccountPrefix')]",
"type": "[parameters('storageAccountType')]"
},
"clusterTshirtSizeEval": {
"nameNodeCount": 1,
"dataNodeCount": 3,
"masterVmSize": "Standard_A3",
"masterNodeTemplateUri": "/cluster-node-16disk.json",
"workerVmSize": "Standard_A3",
"workerNodeTemplateUri": "/cluster-node-8disk.json"
},
"clusterTshirtSizeSmall": {
"nameNodeCount": 3,
"dataNodeCount": 9,
"masterVmSize": "Standard_A6",
"masterNodeTemplateUri": "/cluster-node-8disk.json",
"workerVmSize": "Standard_A7",
"workerNodeTemplateUri": "/cluster-node-16disk.json"
},
"clusterTshirtSizeMedium": {
"nameNodeCount": 3,
"dataNodeCount": 99,
"masterVmSize": "Standard_A7",
"masterNodeTemplateUri": "/cluster-node-16disk.json",
"workerVmSize": "Standard_A7",
"workerNodeTemplateUri": "/cluster-node-16disk.json"
},
"clusterSpec": "[variables(concat('clusterTshirtSize', parameters('tshirtSize')))]",
"masterNodeASName": "[concat(parameters('dnsNamePrefix'), '-mnAS')]",
"workerNodeASName": "[concat(parameters('dnsNamePrefix'), '-wnAS')]",
"vmSpec": {
"adminUserName": "[parameters('adminUserName')]",
"adminPassword": "[parameters('adminPassword')]",
"keyVaultResourceId": "[resourceId(parameters('keyVaultResourceGroup'), 'Microsoft.KeyVault/vaults', parameters('keyVaultName'))]",
"keyUri": "[parameters('keyUri')]",
"publicSSHCert": "[parameters('publicSSHCert')]",
"masterNodeASName": "[concat(parameters('dnsNamePrefix'), '-mnAS')]",
"workerNodeASName": "[concat(parameters('dnsNamePrefix'), '-wnAS')]"
},
"networkSpec": {
"addressPrefix": "[parameters('addressPrefix')]",
"subnetPrefix": "[parameters('subnetPrefix')]",
"dnsPrefix": "[parameters('dnsNamePrefix')]",
"privateIPPrefix": "[parameters('nodeAddressPrefix')]",
"masterNodeAddress": "9",
"nameNodeAddressStart": 10,
"dataNodeAddressStart": 20,
"virtualNetworkName": "[parameters('virtualNetworkName')]",
"virtualNetworkSubnetName": "[parameters('subnetName')]"
}
},
"resources": [
{
"name": "shared-resources",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2015-01-01",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('scriptsUri'), '/shared-resources.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"region": {
"value": "[parameters('region')]"
},
"networkSpec": {
"value": "[variables('networkSpec')]"
},
"masterNodeASName": {
"value": "[variables('vmSpec').masterNodeASName]"
},
"workerNodeASName": {
"value": "[variables('vmSpec').workerNodeASName]"
}
}
}
},
{
"name": "name-node",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2015-01-01",
"dependsOn": [
"Microsoft.Resources/deployments/shared-resources"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('scriptsUri'), '/name-node.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"dnsNamePrefix": {
"value": "[parameters('dnsNamePrefix')]"
},
"region": {
"value": "[parameters('region')]"
},
"scriptsUri": {
"value": "[variables('scriptsUri')]"
},
"nodeTemplateUri": {
"value": "[variables('clusterSpec').masterNodeTemplateUri]"
},
"storageAccount" : {
"value": "[variables('storageAccount')]"
},
"vmSize": {
"value": "[variables('clusterSpec').masterVmSize]"
},
"vmCount": {
"value": "[variables('clusterSpec').nameNodeCount]"
},
"vmSpec": {
"value": "[variables('vmSpec')]"
},
"networkSpec": {
"value": "[variables('networkSpec')]"
},
"clusterSpec": {
"value": "[variables('clusterSpec')]"
}
}
}
},
{
"name": "data-node",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2015-01-01",
"dependsOn": [
"Microsoft.Resources/deployments/shared-resources"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('scriptsUri'), '/data-node.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"dnsNamePrefix": {
"value": "[parameters('dnsNamePrefix')]"
},
"region": {
"value": "[parameters('region')]"
},
"scriptsUri": {
"value": "[variables('scriptsUri')]"
},
"nodeTemplateUri": {
"value": "[variables('clusterSpec').workerNodeTemplateUri]"
},
"storageAccount" : {
"value": "[variables('storageAccount')]"
},
"vmSize": {
"value": "[variables('clusterSpec').workerVmSize]"
},
"vmCount": {
"value": "[variables('clusterSpec').dataNodeCount]"
},
"vmSpec": {
"value": "[variables('vmSpec')]"
},
"networkSpec": {
"value": "[variables('networkSpec')]"
},
"clusterSpec": {
"value": "[variables('clusterSpec')]"
}
}
}
},
{
"name": "master-node",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2015-01-01",
"dependsOn": [
"Microsoft.Resources/deployments/data-node",
"Microsoft.Resources/deployments/name-node"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('scriptsUri'), '/master-node.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"dnsNamePrefix": {
"value": "[parameters('dnsNamePrefix')]"
},
"region": {
"value": "[parameters('region')]"
},
"scriptsUri": {
"value": "[variables('scriptsUri')]"
},
"nodeTemplateUri": {
"value": "[variables('clusterSpec').masterNodeTemplateUri]"
},
"storageAccount" : {
"value": "[variables('storageAccount')]"
},
"vmSize": {
"value": "[variables('clusterSpec').masterVmSize]"
},
"vmSpec": {
"value": "[variables('vmSpec')]"
},
"networkSpec" : {
"value": "[variables('networkSpec')]"
},
"clusterSpec": {
"value": "[variables('clusterSpec')]"
}
}
}
}
]
}