зеркало из https://github.com/Azure/Moodle.git
64 строки
2.6 KiB
JSON
64 строки
2.6 KiB
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"moodleCommon": {
|
|
"metadata": {
|
|
"description": "Common Moodle values"
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"apiVersion": "[parameters('moodleCommon').computeApi]",
|
|
"location": "[resourceGroup().location]",
|
|
"name": "[parameters('moodleCommon').gfxAvailabilitySetName]",
|
|
"properties": {
|
|
"managed": true,
|
|
"platformFaultDomainCount": 2,
|
|
"platformUpdateDomainCount": 5
|
|
},
|
|
"tags": {
|
|
"displayName": "Gluster Availability Set"
|
|
},
|
|
"type": "Microsoft.Compute/availabilitySets"
|
|
},
|
|
{
|
|
"apiVersion": "2015-01-01",
|
|
"copy": {
|
|
"count": "[parameters('moodleCommon').glusterVmCount]",
|
|
"name": "vmloop"
|
|
},
|
|
"dependsOn": [
|
|
"[concat('Microsoft.Compute/availabilitySets/',parameters('moodleCommon').gfxAvailabilitySetName)]"
|
|
],
|
|
"name": "[concat('glustervm',copyindex())]",
|
|
"properties": {
|
|
"mode": "Incremental",
|
|
"parameters": {
|
|
"counter": {
|
|
"value": "[copyindex()]"
|
|
},
|
|
"moodleCommon": {
|
|
"value": "[parameters('moodleCommon')]"
|
|
}
|
|
},
|
|
"templateLink": {
|
|
"uri": "[concat( parameters('moodleCommon').baseTemplateUrl,'glustervm.json',parameters('moodleCommon').artifactsSasToken)]"
|
|
}
|
|
},
|
|
"type": "Microsoft.Resources/deployments"
|
|
}
|
|
],
|
|
"variables": {
|
|
"documentation1": "This sub-template drives the gluster (scale-out network-attached storage file system) creation process.",
|
|
"documentation2": "It expects certain values in the 'common' datastructure.",
|
|
"documentation3": " computeApi - the 'managed' resources need to all use this value",
|
|
"documentation4": " gfxAvailabilitySetName - name of availability set for the gluster farm",
|
|
"documentation5": " glusterVmCount - number of nodes to create",
|
|
"documentation6": "This sub-template calls other sub-templates",
|
|
"documentation7": " glustervm - number of nodes in the gluster farm"
|
|
}
|
|
}
|