Skip to content

Commit

Permalink
FIXT-TEMPLATE: eris-platform (#10172)
Browse files Browse the repository at this point in the history
* initial commit

* initial commit

* changing the password to unique one

* initial commit

* changing the password to unique one

* initial commit

* initial commit

* reverting

* adding openedx version

* STAGED

* initial commit

* test

* Update artifactslocation

Co-authored-by: olga-spektra <ssi_okuzina@qbsol.com>
Co-authored-by: Akhil Thomas <akhilthomas011@gmail.com>
  • Loading branch information
3 people committed May 19, 2021
1 parent 3347129 commit 957d7b9
Showing 1 changed file with 20 additions and 33 deletions.
53 changes: 20 additions & 33 deletions eris-platform/azuredeploy.json
Expand Up @@ -31,16 +31,6 @@
"vmSize": {
"type": "string",
"defaultValue": "Standard_A1",
"allowedValues": [
"Standard_A1",
"Standard_A2",
"Standard_A3",
"Standard_A4",
"Standard_D1",
"Standard_D2",
"Standard_D3",
"Standard_D4"
],
"metadata": {
"description": "Size of VM"
}
Expand Down Expand Up @@ -68,6 +58,20 @@
"metadata": {
"description": "SSH Key or password for the Virtual Machine. SSH key is recommended."
}
},
"_artifactsLocation": {
"defaultValue": "[deployment().properties.templateLink.uri]",
"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."
}
},
"_artifactsLocationSasToken": {
"defaultValue": "",
"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."
}
}
},
"variables": {
Expand All @@ -82,7 +86,6 @@
"storageAccountType": "Standard_LRS",
"publicIPAddressName": "[parameters('dnsLabelPrefix')]",
"publicIPAddressType": "Dynamic",
"vmStorageAccountContainerName": "vhds",
"vmName": "[parameters('dnsLabelPrefix')]",
"virtualNetworkName": "WPVNET",
"subnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('subnetName'))]",
Expand Down Expand Up @@ -179,8 +182,8 @@
"name": "[variables('nicName')]",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]",
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]"
"[resourceId('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]",
"[resourceId('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]"
],
"properties": {
"ipConfigurations": [
Expand All @@ -205,8 +208,8 @@
"name": "[variables('vmName')]",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
"[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
"[resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
"[resourceId('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
],
"properties": {
"hardwareProfile": {
Expand Down Expand Up @@ -240,29 +243,13 @@
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(variables('vmName'),'/docker-for-eris')]",
"apiVersion": "2015-06-15",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "DockerExtension",
"typeHandlerVersion": "1.0",
"autoUpgradeMinorVersion": true,
"settings": {}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(variables('vmName'),'/newuserscript')]",
"apiVersion": "2015-06-15",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'), '/extensions/docker-for-eris')]"
"[resourceId('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.Azure.Extensions",
Expand All @@ -271,7 +258,7 @@
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/eris-platform/setup.sh"
"[uri(parameters('_artifactsLocation'), concat('setup.sh', parameters('_artifactsLocationSasToken')))]"
],
"commandToExecute": "[concat('bash setup.sh ', parameters('adminUsername'), ' ', parameters('servicesToStart'), ' ', parameters('chainsToStart'))]"
}
Expand Down

0 comments on commit 957d7b9

Please sign in to comment.