|
1 | 1 | { |
2 | | - "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", |
| 2 | + "$schema": "http://schema.management.azure.com/schemas/2015-01-01-preview/deploymentTemplate.json", |
3 | 3 | "contentVersion": "1.0.0.0", |
4 | 4 | "parameters": { |
5 | 5 | "adminUserName": { |
|
11 | 11 | }, |
12 | 12 | "adminPassword": { |
13 | 13 | "type": "securestring", |
14 | | - "defaultValue": "Eur32#1e", |
15 | 14 | "metadata": { |
16 | 15 | "description": "Admin password for the Virtual Machines" |
17 | 16 | } |
18 | 17 | }, |
| 18 | + "cmUsername": { |
| 19 | + "type": "string", |
| 20 | + "defaultValue": "cmadmin", |
| 21 | + "metadata": { |
| 22 | + "description": "User name for the Cloudera Manager" |
| 23 | + } |
| 24 | + }, |
| 25 | + "cmPassword": { |
| 26 | + "type": "securestring", |
| 27 | + "metadata": { |
| 28 | + "description": "password for the Cloudera Manager" |
| 29 | + } |
| 30 | + }, |
19 | 31 | "storageAccountPrefix": { |
20 | 32 | "type": "string", |
21 | | - "defaultValue": "defaultStorageAccountPrefix", |
22 | 33 | "metadata": { |
23 | 34 | "description": "Unique namespace for the Storage Account where the Virtual Machine's disks will be placed" |
24 | 35 | } |
25 | 36 | }, |
26 | 37 | "dnsNamePrefix": { |
27 | 38 | "type": "string", |
28 | | - "defaultValue": "defaultDnsNamePrefix", |
29 | 39 | "metadata": { |
30 | 40 | "description": "Unique public dns name where the Virtual Machines will be exposed" |
31 | 41 | } |
32 | 42 | }, |
33 | 43 | "region": { |
34 | 44 | "type": "string", |
| 45 | + "defaultValue": "japanwest", |
35 | 46 | "metadata": { |
36 | 47 | "description": "Location where resources will be provisioned" |
37 | 48 | } |
38 | 49 | }, |
39 | 50 | "storageAccountType": { |
40 | 51 | "type": "string", |
41 | | - "defaultValue": "Standard_LRS", |
| 52 | + "defaultValue": "Premium_LRS", |
42 | 53 | "metadata": { |
43 | 54 | "description": "The type of the Storage Account to be created (Default to Standard_LRS)" |
44 | 55 | } |
45 | 56 | }, |
46 | 57 | "virtualNetworkName": { |
47 | 58 | "type": "string", |
48 | | - "defaultValue": "clouderaVnet", |
| 59 | + "defaultValue": "clouderavnet", |
49 | 60 | "metadata": { |
50 | 61 | "description": "The name of the virtual network provisioned for the deployment" |
51 | 62 | } |
52 | 63 | }, |
53 | 64 | "subnetName": { |
54 | 65 | "type": "string", |
55 | | - "defaultValue": "clouderaSubnet", |
| 66 | + "defaultValue": "clouderasubnet", |
56 | 67 | "metadata": { |
57 | 68 | "description": "Subnet name for the virtual network where resources will be provisioned" |
58 | 69 | } |
59 | 70 | }, |
60 | | - "addressPrefix": { |
61 | | - "type": "string", |
62 | | - "defaultValue": "10.0.0.0/24", |
63 | | - "metadata": { |
64 | | - "description": "The network address space for the virtual network" |
65 | | - } |
66 | | - }, |
67 | | - "subnetPrefix": { |
68 | | - "type": "string", |
69 | | - "defaultValue": "10.0.0.0/24", |
70 | | - "metadata": { |
71 | | - "description": "The network address space for the virtual subnet" |
72 | | - } |
73 | | - }, |
74 | | - "nodeAddressPrefix": { |
75 | | - "type": "string", |
76 | | - "defaultValue": "10.0.0.", |
77 | | - "metadata": { |
78 | | - "description": "The IP address prefix that will be used for constructing private IP address for each node in the cluster" |
79 | | - } |
80 | | - }, |
81 | 71 | "tshirtSize": { |
82 | 72 | "type": "string", |
83 | 73 | "defaultValue": "Eval", |
|
98 | 88 | }, |
99 | 89 | "vmSize": { |
100 | 90 | "type": "string", |
101 | | - "defaultValue": "Standard_D14", |
| 91 | + "defaultValue": "Standard_DS14", |
102 | 92 | "metadata": { |
103 | 93 | "description": "The size of the VMs deployed in the cluster (Defaults to Standard_D14)" |
104 | 94 | } |
105 | 95 | }, |
106 | | - "keyVaultResourceGroup": { |
| 96 | + "company": { |
107 | 97 | "type": "string", |
108 | | - "defaultValue": "AzureRM-Util", |
| 98 | + "defaultValue": "Company", |
109 | 99 | "metadata": { |
110 | | - "description": "The resource group containing the key vault which provides the private key used for SSH login. See the readme for details." |
| 100 | + "description": "Your Company" |
111 | 101 | } |
112 | 102 | }, |
113 | | - "keyVaultName": { |
| 103 | + "emailAddress": { |
114 | 104 | "type": "string", |
115 | | - "defaultValue": "AzureRM-Keys", |
| 105 | + "defaultValue": "[email protected]", |
116 | 106 | "metadata": { |
117 | | - "description": "The name of the key vault which provides the private key used for SSH login. See the readme for details." |
| 107 | + "description": "your email" |
118 | 108 | } |
119 | 109 | }, |
120 | | - "keyUri": { |
| 110 | + "businessPhone": { |
121 | 111 | "type": "string", |
122 | | - "defaultValue": "https://azurerm-keys.vault.azure.net/secrets/sshKey/29a10ecf43b64c7ab7eace8866d64597", |
| 112 | + "defaultValue": "123456789", |
123 | 113 | "metadata": { |
124 | | - "description": "The url of the private key used for SSH login. See the readme for details." |
| 114 | + "description": "your business phone number" |
125 | 115 | } |
| 116 | + }, |
| 117 | + "firstName": { |
| 118 | + "type": "string", |
| 119 | + "defaultValue": "FirstName", |
| 120 | + "metadata": { |
| 121 | + "description": "Your FirstName" |
| 122 | + } |
| 123 | + }, |
| 124 | + "lastName": { |
| 125 | + "type": "string", |
| 126 | + "defaultValue": "LastName", |
| 127 | + "metadata": { |
| 128 | + "description": "Your LastName" |
| 129 | + } |
| 130 | + }, |
| 131 | + "jobRole": { |
| 132 | + "type": "string", |
| 133 | + "defaultValue": "Administrator", |
| 134 | + "allowedValues": [ |
| 135 | + "Administrator", |
| 136 | + "Analyst (Industry/Finance)", |
| 137 | + "Analyst (Technical)", |
| 138 | + "Architect", |
| 139 | + "C level", |
| 140 | + "Consultant", |
| 141 | + "Developer", |
| 142 | + "Director", |
| 143 | + "Engineer", |
| 144 | + "Individual contributor", |
| 145 | + "Manager", |
| 146 | + "Partner", |
| 147 | + "Student", |
| 148 | + "VP" |
| 149 | + ] |
| 150 | + }, |
| 151 | + "jobFunction": { |
| 152 | + "type": "string", |
| 153 | + "defaultValue": "Analytics / Business Intelligence", |
| 154 | + "allowedValues": [ |
| 155 | + "Analytics / Business Intelligence", |
| 156 | + "Big Data / Architecture", |
| 157 | + "Data Warehouse / Management", |
| 158 | + "Data Science", |
| 159 | + "Database", |
| 160 | + "ETL / ELT", |
| 161 | + "Infrastructure", |
| 162 | + "IT", |
| 163 | + "Marketing / Sales", |
| 164 | + "Networking", |
| 165 | + "Manager", |
| 166 | + "Security / Compliance", |
| 167 | + "Storage" |
| 168 | + ] |
126 | 169 | } |
127 | 170 | }, |
128 | 171 | "variables": { |
| 172 | + "addressPrefix":"10.0.0.0/24", |
| 173 | + "subnetPrefix":"10.0.0.0/24", |
| 174 | + "nodeAddressPrefix":"10.0.0.", |
129 | 175 | "scriptsUri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/cloudera-on-centos", |
130 | 176 | "storageAccount": { |
131 | 177 | "prefix": "[parameters('storageAccountPrefix')]", |
132 | 178 | "type": "[parameters('storageAccountType')]" |
133 | 179 | }, |
134 | 180 | "clusterTshirtSizeEval": { |
135 | | - "nameNodeCount": 3, |
| 181 | + "masterNodeCount": 1, |
136 | 182 | "dataNodeCount": "[parameters('numberOfDataNodes')]", |
137 | 183 | "highAvailability": "false" |
138 | 184 | }, |
139 | 185 | "clusterTshirtSizeProd": { |
140 | | - "nameNodeCount": 3, |
| 186 | + "masterNodeCount": 3, |
141 | 187 | "dataNodeCount": "[parameters('numberOfDataNodes')]", |
142 | 188 | "highAvailability": "true" |
143 | 189 | }, |
144 | 190 | "clusterSpec": "[variables(concat('clusterTshirtSize', parameters('tshirtSize')))]", |
145 | 191 | "vmSpec": { |
146 | 192 | "vmSize": "[parameters('vmSize')]", |
147 | | - "privateIPAddressPrefix": "[parameters('nodeAddressPrefix')]", |
| 193 | + "privateIPAddressPrefix": "[variables('nodeAddressPrefix')]", |
148 | 194 | "adminUserName": "[parameters('adminUserName')]", |
149 | 195 | "adminPassword": "[parameters('adminPassword')]", |
150 | | - "keyVaultResourceId": "[resourceId(parameters('keyVaultResourceGroup'), 'Microsoft.KeyVault/vaults', parameters('keyVaultName'))]", |
151 | | - "keyUri": "[parameters('keyUri')]", |
152 | | - "nameNodeASName": "[concat(parameters('dnsNamePrefix'), '-nnAS')]", |
| 196 | + "masterNodeASName": "[concat(parameters('dnsNamePrefix'), '-mnAS')]", |
153 | 197 | "dataNodeASName": "[concat(parameters('dnsNamePrefix'), '-dnAS')]" |
154 | 198 | }, |
155 | 199 | "networkSpec": { |
156 | | - "addressPrefix": "[parameters('addressPrefix')]", |
157 | | - "subnetPrefix": "[parameters('subnetPrefix')]", |
158 | | - "privateIPPrefix": "[parameters('nodeAddressPrefix')]", |
159 | | - "nameNodeAddressStart": 10, |
| 200 | + "addressPrefix": "[variables('addressPrefix')]", |
| 201 | + "subnetPrefix": "[variables('subnetPrefix')]", |
| 202 | + "privateIPPrefix": "[variables('nodeAddressPrefix')]", |
| 203 | + "masterNodeAddressStart": 10, |
160 | 204 | "dataNodeAddressStart": 20, |
161 | 205 | "virtualNetworkName": "[parameters('virtualNetworkName')]", |
162 | 206 | "virtualNetworkSubnetName": "[parameters('subnetName')]" |
|
180 | 224 | "networkSpec": { |
181 | 225 | "value": "[variables('networkSpec')]" |
182 | 226 | }, |
183 | | - "nameNodeASName": { |
184 | | - "value": "[variables('vmSpec').nameNodeASName]" |
| 227 | + "masterNodeASName": { |
| 228 | + "value": "[variables('vmSpec').masterNodeASName]" |
185 | 229 | }, |
186 | 230 | "dataNodeASName": { |
187 | 231 | "value": "[variables('vmSpec').dataNodeASName]" |
|
190 | 234 | } |
191 | 235 | }, |
192 | 236 | { |
193 | | - "name": "name-node", |
| 237 | + "name": "master-node", |
194 | 238 | "type": "Microsoft.Resources/deployments", |
195 | 239 | "apiVersion": "2015-01-01", |
196 | 240 | "dependsOn": [ |
|
199 | 243 | "properties": { |
200 | 244 | "mode": "Incremental", |
201 | 245 | "templateLink": { |
202 | | - "uri": "[concat(variables('scriptsUri'), '/name-node.json')]", |
| 246 | + "uri": "[concat(variables('scriptsUri'), '/master-node.json')]", |
203 | 247 | "contentVersion": "1.0.0.0" |
204 | 248 | }, |
205 | 249 | "parameters": { |
|
216 | 260 | "value": "[variables('storageAccount')]" |
217 | 261 | }, |
218 | 262 | "vmCount": { |
219 | | - "value": "[variables('clusterSpec').nameNodeCount]" |
| 263 | + "value": "[variables('clusterSpec').masterNodeCount]" |
220 | 264 | }, |
221 | 265 | "vmSpec": { |
222 | 266 | "value": "[variables('vmSpec')]" |
|
277 | 321 | "apiVersion": "2015-01-01", |
278 | 322 | "dependsOn": [ |
279 | 323 | "Microsoft.Resources/deployments/data-node", |
280 | | - "Microsoft.Resources/deployments/name-node" |
| 324 | + "Microsoft.Resources/deployments/master-node" |
281 | 325 | ], |
282 | 326 | "properties": { |
283 | 327 | "mode": "Incremental", |
|
305 | 349 | "value": "[variables('clusterSpec')]" |
306 | 350 | }, |
307 | 351 | "fqdn": { |
308 | | - "value": "[reference('name-node').outputs.fqdn.value]" |
| 352 | + "value": "[reference('master-node').outputs.fqdn.value]" |
| 353 | + }, |
| 354 | + "cmUsername": { |
| 355 | + "value": "[parameters('cmUsername')]" |
| 356 | + }, |
| 357 | + "cmPassword": { |
| 358 | + "value": "[parameters('cmPassword')]" |
| 359 | + }, |
| 360 | + "company": { |
| 361 | + "value": "[parameters('Company')]" |
| 362 | + }, |
| 363 | + "emailAddress": { |
| 364 | + "value": "[parameters('emailAddress')]" |
| 365 | + }, |
| 366 | + "businessPhone": { |
| 367 | + "value": "[parameters('businessPhone')]" |
| 368 | + }, |
| 369 | + "firstName": { |
| 370 | + "value": "[parameters('firstName')]" |
| 371 | + }, |
| 372 | + "lastName": { |
| 373 | + "value": "[parameters('lastName')]" |
| 374 | + }, |
| 375 | + "jobRole": { |
| 376 | + "value": "[parameters('jobRole')]" |
| 377 | + }, |
| 378 | + "jobFunction": { |
| 379 | + "value": "[parameters('jobFunction')]" |
309 | 380 | } |
310 | 381 | } |
311 | 382 | } |
|
0 commit comments