74 строки
3.3 KiB
JSON
74 строки
3.3 KiB
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"_artifactsLocation": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The base URI where artifacts required by this template are located. When the template is deployed using the accompanying scripts, a private location in the subscription will be used and this value will be automatically generated."
|
|
},
|
|
"defaultValue": "https://raw.githubusercontent.com/Azure/LAMP/master/"
|
|
},
|
|
"_artifactsLocationSasToken": {
|
|
"type": "securestring",
|
|
"metadata": {
|
|
"description": "The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated."
|
|
},
|
|
"defaultValue": ""
|
|
},
|
|
"sshPublicKey": {
|
|
"metadata": {
|
|
"description": "ssh public key"
|
|
},
|
|
"type": "string"
|
|
},
|
|
"applicationType":{
|
|
"defaultValue": "None",
|
|
"allowedValues": [
|
|
"None",
|
|
"WordPress",
|
|
"Moodle"
|
|
],
|
|
"metadata": {
|
|
"description": "Select the application to be installed. If selects none it will deploy Empty LAMP stack"
|
|
},
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"type": "Microsoft.Resources/deployments",
|
|
"apiVersion": "2019-10-01",
|
|
"name": "mainTemplate",
|
|
"properties": {
|
|
"mode": "Incremental",
|
|
"parameters": {
|
|
"_artifactsLocation": { "value": "[parameters('_artifactsLocation')]" },
|
|
"_artifactsLocationSasToken": { "value": "[parameters('_artifactsLocationSasToken')]" },
|
|
"redisDeploySwitch": { "value": true },
|
|
"azureBackupSwitch": { "value": true },
|
|
"sshPublicKey": { "value": "[parameters('sshPublicKey')]" },
|
|
"mysqlPgresVcores": { "value": 16 },
|
|
"mysqlPgresStgSizeGB": { "value": 512 },
|
|
"fileServerType": { "value": "gluster" },
|
|
"fileServerDiskSize": { "value": 512 },
|
|
"applicatioType": { "value": "[parameters('applicationType')]"}
|
|
},
|
|
"templateLink": {
|
|
"uri": "[concat(parameters('_artifactsLocation'), 'azuredeploy.json', parameters('_artifactsLocationSasToken'))]"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outputs": {
|
|
"mainTemplateOutputs": {
|
|
"type": "object",
|
|
"value": "[reference('mainTemplate').outputs]"
|
|
}
|
|
},
|
|
"variables": {
|
|
"documentation01": "This wrapper template calls the main-template with maximum configs and the only required parameter (sshPublicKey).",
|
|
"documentation02": "For the best-possible performance, and highly available. Other parameters are fixed in this tempalte and overriden as above."
|
|
}
|
|
}
|