forked from Azure/Moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azuredeploy-minimal.json
123 lines (123 loc) · 4.73 KB
/
azuredeploy-minimal.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-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/ULCC/AzureFork/ubuntu18/"
},
"_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"
}
},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"name": "mainTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"_artifactsLocation": {
"value": "[parameters('_artifactsLocation')]"
},
"_artifactsLocationSasToken": {
"value": "[parameters('_artifactsLocationSasToken')]"
},
"redisDeploySwitch": {
"value": false
},
"sshPublicKey": {
"value": "[parameters('sshPublicKey')]"
},
"autoscaleVmSku": {
"value": "Standard_DS1_v2"
},
"enableAccelNwForOtherVmsSwitch": {
"value": false
},
"dbServerType": {
"value": "mysql"
},
"fileServerDiskCount": {
"value": 2
},
"fileServerDiskSize": {
"value": 32
}
},
"templateLink": {
"uri": "[concat(parameters('_artifactsLocation'), 'azuredeploy.json', parameters('_artifactsLocationSasToken'))]"
}
}
}
],
"outputs": {
"siteURL": {
"type": "string",
"value": "[variables('moodleCommon').siteURL]"
},
"controllerInstanceIP": {
"type": "string",
"value": "[reference('controllerTemplate').outputs.controllerIP.value]"
},
"databaseDNS": {
"type": "string",
"value": "[reference('dbTemplate').outputs.dbFQDN.value]"
},
"databaseAdminUsername": {
"type": "string",
"value": "[variables('moodleCommon').dbUsername]"
},
"databaseAdminPassword": {
"type": "string",
"value": "[variables('moodleCommon').dbLoginPassword]"
},
"firstFrontendVmIP": {
"type": "string",
"value": "[reference('scaleSetTemplate').outputs.webvm1IP.value]"
},
"moodleAdminPassword": {
"type": "string",
"value": "[variables('moodleCommon').moodleAdminPass]"
},
"moodleDbUsername": {
"type": "string",
"value": "[variables('moodleCommon').moodleDbUserAzure]"
},
"moodleDbPassword": {
"type": "string",
"value": "[variables('moodleCommon').moodleDbPass]"
},
"loadBalancerDNS": {
"type": "string",
"value": "[variables('moodleCommon').lbDns]"
},
"loadBalancerSku": {
"type": "string",
"value": "[variables('moodleCommon').lbSku]"
}
},
"variables": {
"documentation01": "This wrapper template calls the main-template with bare minimum configs and the only required parameter (sshPublicKey).",
"documentation02": "To speed up deployment and consume least resources, other parameters are fixed in this tempalte and overriden as follows:",
"documentation03": " - fileServerType: nfs",
"documentation04": " - autoscaleVmSku: Standard_DS1_vs",
"documentation05": " - fileServerDiskCount: 2",
"documentation06": " - dbServerType: mysql",
"documentation07": " - redisDeploySwitch: false"
}
}