Skip to content

Commit

Permalink
Add updated
Browse files Browse the repository at this point in the history
  • Loading branch information
haroldwongms committed May 19, 2022
1 parent e65d489 commit 981c565
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 0 deletions.
130 changes: 130 additions & 0 deletions createUiDefinition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"basics": [{
"name": "VirtualNetworkName",
"type": "Microsoft.Compute.UserNameTextBox",
"label": "Virtual Network Name",
"defaultValue": "VNet1",
"toolTip": "The name of the Virtual Network for Horizon Cloud.",
"constraints": {
"required": true
},
"osPlatform": "Linux"
}, {
"name": "adminPassword",
"type": "Microsoft.Compute.CredentialsCombo",
"label": {
"authenticationType": "Authentication Type",
"sshPublicKey": "SSH Public Key for VM Admin User"
},
"toolTip": {
"sshPublicKey": "SSH Public Key for the VM Admin User."
},
"constraints": {
"required": true
},
"options": {
"hideConfirmation": false,
"hidePassword": true
},
"osPlatform": "Linux"
}],
"steps": [{
"name": "infrastructureSettings",
"label": "Infrastructure Settings",
"subLabel": {
"preValidation": "Configure Infrastructure Settings",
"postValidation": "Done"
},
"bladeTitle": "Infrastructure Settings",
"elements": [{
"name": "vmTowerName",
"type": "Microsoft.Common.TextBox",
"label": "Ansible Tower VM Name",
"defaultValue": "ansibletowervm",
"toolTip": "The name of the Ansible Tower VM. Must be between 1 and 30 characters.",
"constraints": {
"required": true,
"regex": "^[a-z0-9A-Z]{1,30}$",
"validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-30 characters long."
}
}, {
"name": "vmSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "Ansible Tower VM size",
"defaultValue": "Standard_DS2_v2",
"toolTip": "The size of the Ansible Tower VM to deploy.",
"recommendedSizes": [
"Standard_DS2_v2",
"Standard_DS1_v2",
"Standard_DS3_v2"
],
"constraints": {
"allowedSizes": [
"Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4",
"Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14",
"Standard_DS1_v2", "Standard_DS2_v2", "Standard_DS3_v2", "Standard_DS4_v2", "Standard_DS5_v2",
"Standard_DS11_v2", "Standard_DS12_v2", "Standard_DS13_v2", "Standard_DS14_v2"
]
},
"osPlatform": "Linux"
}]
}, {
"name": "ansibleTowerSettings",
"label": "Ansible Tower Settings",
"subLabel": {
"preValidation": "Configure Ansible Tower Settings",
"postValidation": "Done"
},
"bladeTitle": "Ansible Tower Settings",
"elements": [{
"name": "ansibleTowerAdminPassword",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Password for Ansible Tower Console Admin",
"confirmPassword": "Confirm Password for Ansible Tower Console Admin"
},
"toolTip": {
"password": "Password for Ansible Tower Console Admin. Must be between 5 and 30 characters."
},
"constraints": {
"required": true,
"regex": "^.{5,30}$",
"validationMessage": "Enter a password for Ansible Tower Console Admin. The password must be 5-30 characters long."
},
"options": {
"hideConfirmation": false
}
}, {
"name": "ansibleTowerDatabasePassword",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Password for Ansible Tower Database",
"confirmPassword": "Confirm Password for Ansible Tower Database"
},
"toolTip": {
"password": "Password for Ansible Tower Database. Must be between 5 and 30 characters."
},
"constraints": {
"required": true,
"regex": "^.{5,30}$",
"validationMessage": "Enter a password for Ansible Tower Database. The password must be 5-30 characters long."
},
"options": {
"hideConfirmation": false
}
}]
}],
"outputs": {
"vmAnsibleTowerUsername": "[basics('vmAnsibleTowerUsername')]",
"sshKeyData": "[basics('adminPassword').sshPublicKey]",
"vmSize": "[steps('infrastructureSettings').vmSize]",
"vmTowerName": "[steps('infrastructureSettings').vmTowerName]",
"ansibleTowerAdminPassword": "[steps('ansibleTowerSettings').ansibleTowerAdminPassword]",
"ansibleTowerDatabasePassword": "[steps('ansibleTowerSettings').ansibleTowerDatabasePassword]"
}
}
}
20 changes: 20 additions & 0 deletions hcoaprereq → hcoaprereq.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@
"description": "Subnet 2 Name"
}
},
"subnet3Prefix": {
"type": "string",
"defaultValue": "10.0.2.0/24",
"metadata": {
"description": "Subnet 3 Prefix"
}
},
"subnet3Name": {
"type": "string",
"defaultValue": "Subnet3",
"metadata": {
"description": "Subnet 3 Name"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
Expand Down Expand Up @@ -83,6 +97,12 @@
"properties": {
"addressPrefix": "[parameters('subnet2Prefix')]"
}
},
{
"name": "[parameters('subnet3Name')]",
"properties": {
"addressPrefix": "[parameters('subnet3Prefix')]"
}
}
]
}
Expand Down

0 comments on commit 981c565

Please sign in to comment.