Pass controller VM name instead of priv IP (for NFS mount--dynamic IP)

This commit is contained in:
Hosung Song 2018-02-14 15:32:19 -08:00
Родитель 8627c0f980
Коммит 7073bfadbb
3 изменённых файлов: 1 добавлений и 14 удалений

Просмотреть файл

@ -495,9 +495,6 @@
},
"storageAccountKey": {
"value": "[reference('storageAccountTemplate').outputs.storageAccountKey.value]"
},
"controllerPrivateIP": {
"value": "[reference('controllerTemplate').outputs.controllerPrivateIP.value]"
}
},
"templateLink": {

Просмотреть файл

@ -275,10 +275,6 @@
"controllerIP": {
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses', parameters('moodleCommon').jboxPipName), '2015-06-15').ipAddress]",
"type": "string"
},
"controllerPrivateIP": {
"value": "[reference(variables('nicRef'), '2017-03-01').ipConfigurations[0].properties.privateIPAddress]",
"type": "string"
}
}
}

Просмотреть файл

@ -13,12 +13,6 @@
"description": "Key used to create the Azure Files share in case azurefiles is specified as fileServerType"
},
"type": "string"
},
"controllerPrivateIP": {
"metadata": {
"description": "Private IP address of the controller (jumpbox) VM, in case NFS mount is needed"
},
"type": "string"
}
},
"resources": [
@ -194,7 +188,7 @@
}
],
"variables": {
"cmdExec": "[concat('bash ',parameters('moodleCommon').webServerSetupScriptFilename,' ',parameters('moodleCommon').gfsNameRoot,'0', ' ','data', ' ', parameters('moodleCommon').siteURL, ' ', concat('jumpbox-vm-',parameters('moodleCommon').resourcesPrefix), ' ', parameters('moodleCommon').webServerType, ' ', parameters('moodleCommon').fileServerType, ' ', parameters('moodleCommon').storageAccountName, ' ', parameters('storageAccountKey'), ' ', parameters('controllerPrivateIP'))]",
"cmdExec": "[concat('bash ',parameters('moodleCommon').webServerSetupScriptFilename,' ',parameters('moodleCommon').gfsNameRoot,'0', ' ','data', ' ', parameters('moodleCommon').siteURL, ' ', concat('jumpbox-vm-',parameters('moodleCommon').resourcesPrefix), ' ', parameters('moodleCommon').webServerType, ' ', parameters('moodleCommon').fileServerType, ' ', parameters('moodleCommon').storageAccountName, ' ', parameters('storageAccountKey'), ' ', parameters('moodleCommon').jboxVmName)]",
"dstorID": "[resourceId('Microsoft.Storage/storageAccounts',parameters('moodleCommon').vmssdStorageAccounttName)]",
"extBeID": "[concat(variables('extLbID'),'/backendAddressPools/',parameters('moodleCommon').extBeName)]",
"extFeID": "[concat(variables('extLbID'),'/frontendIPConfigurations/',parameters('moodleCommon').extFeName)]",