-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcreateUiDefinition.json
More file actions
155 lines (155 loc) · 5.43 KB
/
createUiDefinition.json
File metadata and controls
155 lines (155 loc) · 5.43 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"handler": "Microsoft.Compute.MultiVm",
"version": "0.0.1-preview",
"parameters": {
"basics": [
{
"name": "clusterName",
"type": "Microsoft.Common.TextBox",
"label": "Cluster name",
"toolTip": "The name of the new DataStax cluster.",
"constraints": {
"required": true,
"regex": "^[a-z0-9]{3,24}$",
"validationMessage": "Cluster names must be between 3 and 24 characters long, and can contain only numbers and lowercase letters."
}
},
{
"name": "adminUsername",
"type": "Microsoft.Compute.UserNameTextBox",
"label": "Username",
"toolTip": "Admin username for the virtual machines. The OpsCenter username is 'admin'.",
"osPlatform": "Linux"
},
{
"name": "adminCredentials",
"type": "Microsoft.Compute.CredentialsCombo",
"label": {
"authenticationType": "Authentication type",
"password": "Password",
"confirmPassword": "Confirm password",
"sshPublicKey": "SSH public key"
},
"toolTip": {
"password": "Admin password for the virtual machines and OpsCenter.",
"sshPublicKey": "SSH public key for the virtual machines."
},
"osPlatform": "Linux"
}
],
"steps": [
{
"name": "dataStaxConfig",
"label": "DataStax cluster settings",
"subLabel": {
"preValidation": "Configure the cluster",
"postValidation": "Done"
},
"bladeTitle": "DataStax cluster settings",
"elements": [
{
"name": "clusterNodeCount",
"type": "Microsoft.Common.DropDown",
"label": "Cluster size",
"defaultValue": "4",
"toolTip": "The number of virtual machines (nodes) to provision for the cluster.",
"constraints": {
"allowedValues": [
{
"label": "4",
"value": 4
},
{
"label": "12",
"value": 12
},
{
"label": "36",
"value": 36
},
{
"label": "90",
"value": 90
}
]
}
},
{
"name": "clusterVmSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "Virtual machine size",
"toolTip": "The size of virtual machine to provision for each cluster node.",
"recommendedSizes": [
"Standard_D12",
"Standard_D13",
"Standard_D14",
"Standard_G2",
"Standard_G3",
"Standard_G4",
"Standard_G5"
],
"osPlatform": "Linux",
"imageReference": {
"publisher": "Canonical",
"offer": "UbuntuServer",
"sku": "14.04.2-LTS"
},
"count": "[basics('clusterNodeCount')]"
},
{
"name": "opsCenterAdminPassword",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "OpsCenter Admin password",
"confirmPassword": "Confirm password"
},
"toolTip": "DataStax OpsCenter Admin password.",
"constraints": {
"required": true,
"regex": "[a-zA-Z0-9]{15,15}",
"validationMessage": "DataStax OpsCenter passwords be 15 characters long and can contain only letters and numbers."
}
},
{
"name": "dataStaxUsername",
"type": "Microsoft.Common.TextBox",
"label": "DataStax username",
"toolTip": "Your DataStax account username. You can register at [http://datastax.com](http://datastax.com).",
"constraints": {
"required": true,
"regex": "^[a-zA-Z0-9._]{6,254}&",
"validationMessage": "DataStax account usernames must be between 6 and 254 characters long."
}
},
{
"name": "dataStaxPassword",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "DataStax password",
"confirmPassword": "Confirm password"
},
"toolTip": "Your DataStax account password.",
"constraints": {
"required": true,
"regex": "^[a-zA-Z0-9]{15,15}$",
"validationMessage": "DataStax account passwords be 15 characters long and can contain only letters and numbers."
}
}
]
}
],
"outputs": {
"clusterName": "[basics('clusterName')]",
"adminUsername": "[basics('adminUsername')]",
"authenticationType": "[basics('adminCredentials').authenticationType]",
"adminPassword": "[basics('adminCredentials').password]",
"sshPublicKey": "[basics('adminCredentials').sshPublicKey]",
"clusterNodeCount": "[steps('dataStaxConfig').clusterNodeCount]",
"clusterVmSize": "[steps('dataStaxConfig').clusterVmSize]",
"opsCenterAdminPassword" : "[steps('dataStaxConfig').opsCenterAdminPassword]",
"dataStaxUsername": "[steps('dataStaxConfig').dataStaxUsername]",
"dataStaxPassword": "[steps('dataStaxConfig').dataStaxPassword]",
"region": "[location()]"
}
}
}