-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e65d489
commit 981c565
Showing
2 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters