зеркало из https://github.com/Azure/Avere.git
Azure rendering solution deployment framework
This commit is contained in:
Родитель
02c7d6ba51
Коммит
864db218a5
|
@ -352,7 +352,7 @@ resource "azurerm_virtual_machine_extension" "storage" {
|
|||
type = "CustomScript"
|
||||
publisher = "Microsoft.Azure.Extensions"
|
||||
type_handler_version = "2.1"
|
||||
automatic_upgrade_enabled = true
|
||||
automatic_upgrade_enabled = false
|
||||
auto_upgrade_minor_version = true
|
||||
virtual_machine_id = "${azurerm_resource_group.hammerspace[0].id}/providers/Microsoft.Compute/virtualMachines/${each.value.name}"
|
||||
settings = jsonencode({
|
||||
|
|
|
@ -255,7 +255,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "weka" {
|
|||
type = "CustomScript"
|
||||
publisher = "Microsoft.Azure.Extensions"
|
||||
type_handler_version = "2.1"
|
||||
automatic_upgrade_enabled = true
|
||||
automatic_upgrade_enabled = false
|
||||
auto_upgrade_minor_version = true
|
||||
settings = jsonencode({
|
||||
script = "${base64encode(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
resourceGroupName = "ArtistAnywhere.Cache" # Alphanumeric, underscores, hyphens, periods and parenthesis are allowed
|
||||
|
||||
cacheName = "cache" # Set to a uniquely identifiable cache cluster name
|
||||
cacheName = "Cache" # Set to a uniquely identifiable cache cluster name
|
||||
enableHPCCache = true # Enables HPC Cache (PaaS) instead of Avere vFXT (IaaS)
|
||||
enableDevMode = false # Enables non-production deployment of Avere vFXT (IaaS)
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ locals {
|
|||
|
||||
resource "azurerm_role_assignment" "storage_account_contributor" {
|
||||
for_each = {
|
||||
for storageTargetNfsBlob in local.storageTargetsNfsBlob : storageTargetNfsBlob.key => storageTargetNfsBlob
|
||||
for storageTargetNfsBlob in var.storageTargetsNfsBlob: storageTargetNfsBlob.name => storageTargetNfsBlob
|
||||
}
|
||||
role_definition_name = "Storage Account Contributor" # https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#storage-account-contributor
|
||||
principal_id = data.azuread_service_principal.hpc_cache[0].object_id
|
||||
|
@ -73,7 +73,7 @@ resource "azurerm_role_assignment" "storage_account_contributor" {
|
|||
|
||||
resource "azurerm_role_assignment" "storage_blob_data_contributor" {
|
||||
for_each = {
|
||||
for storageTargetNfsBlob in local.storageTargetsNfsBlob : storageTargetNfsBlob.key => storageTargetNfsBlob
|
||||
for storageTargetNfsBlob in var.storageTargetsNfsBlob: storageTargetNfsBlob.name => storageTargetNfsBlob
|
||||
}
|
||||
role_definition_name = "Storage Blob Data Contributor" # https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-contributor
|
||||
principal_id = data.azuread_service_principal.hpc_cache[0].object_id
|
||||
|
|
|
@ -155,7 +155,7 @@ resource "azurerm_virtual_machine_extension" "initialize_linux" {
|
|||
type = "CustomScript"
|
||||
publisher = "Microsoft.Azure.Extensions"
|
||||
type_handler_version = "2.1"
|
||||
automatic_upgrade_enabled = true
|
||||
automatic_upgrade_enabled = false
|
||||
auto_upgrade_minor_version = true
|
||||
virtual_machine_id = "${azurerm_resource_group.scheduler.id}/providers/Microsoft.Compute/virtualMachines/${each.value.name}"
|
||||
settings = jsonencode({
|
||||
|
@ -233,7 +233,7 @@ resource "azurerm_virtual_machine_extension" "initialize_windows" {
|
|||
type = "CustomScriptExtension"
|
||||
publisher = "Microsoft.Compute"
|
||||
type_handler_version = "1.10"
|
||||
automatic_upgrade_enabled = true
|
||||
automatic_upgrade_enabled = false
|
||||
auto_upgrade_minor_version = true
|
||||
virtual_machine_id = "${azurerm_resource_group.scheduler.id}/providers/Microsoft.Compute/virtualMachines/${each.value.name}"
|
||||
settings = jsonencode({
|
||||
|
|
|
@ -555,7 +555,8 @@ functionApp = {
|
|||
existingNetwork = {
|
||||
enable = false
|
||||
name = ""
|
||||
subnetName = ""
|
||||
subnetNameFarm = ""
|
||||
subnetNameAI = ""
|
||||
resourceGroupName = ""
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ resource "azurerm_windows_function_app" "studio" {
|
|||
resource_group_name = azurerm_resource_group.farm.name
|
||||
location = azurerm_resource_group.farm.location
|
||||
service_plan_id = azurerm_service_plan.studio[0].id
|
||||
virtual_network_subnet_id = data.azurerm_subnet.farm.id
|
||||
virtual_network_subnet_id = data.azurerm_subnet.ai.id
|
||||
storage_account_name = data.azurerm_storage_account.studio.name
|
||||
storage_uses_managed_identity = true
|
||||
public_network_access_enabled = false
|
||||
|
|
|
@ -54,7 +54,8 @@ variable "existingNetwork" {
|
|||
type = object({
|
||||
enable = bool
|
||||
name = string
|
||||
subnetName = string
|
||||
subnetNameFarm = string
|
||||
subnetNameAI = string
|
||||
resourceGroupName = string
|
||||
})
|
||||
}
|
||||
|
@ -135,7 +136,13 @@ data "azurerm_virtual_network" "studio" {
|
|||
}
|
||||
|
||||
data "azurerm_subnet" "farm" {
|
||||
name = var.existingNetwork.enable ? var.existingNetwork.subnetName : data.terraform_remote_state.network.outputs.virtualNetwork.subnets[data.terraform_remote_state.network.outputs.virtualNetwork.subnetIndex.farm].name
|
||||
name = var.existingNetwork.enable ? var.existingNetwork.subnetNameFarm : data.terraform_remote_state.network.outputs.virtualNetwork.subnets[data.terraform_remote_state.network.outputs.virtualNetwork.subnetIndex.farm].name
|
||||
resource_group_name = data.azurerm_virtual_network.studio.resource_group_name
|
||||
virtual_network_name = data.azurerm_virtual_network.studio.name
|
||||
}
|
||||
|
||||
data "azurerm_subnet" "ai" {
|
||||
name = var.existingNetwork.enable ? var.existingNetwork.subnetNameAI : data.terraform_remote_state.network.outputs.virtualNetwork.subnets[data.terraform_remote_state.network.outputs.virtualNetwork.subnetIndex.ai].name
|
||||
resource_group_name = data.azurerm_virtual_network.studio.resource_group_name
|
||||
virtual_network_name = data.azurerm_virtual_network.studio.name
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "farm" {
|
|||
type = "CustomScript"
|
||||
publisher = "Microsoft.Azure.Extensions"
|
||||
type_handler_version = "2.1"
|
||||
automatic_upgrade_enabled = true
|
||||
automatic_upgrade_enabled = false
|
||||
auto_upgrade_minor_version = true
|
||||
settings = jsonencode({
|
||||
script = "${base64encode(
|
||||
|
@ -269,7 +269,7 @@ resource "azurerm_windows_virtual_machine_scale_set" "farm" {
|
|||
type = "CustomScriptExtension"
|
||||
publisher = "Microsoft.Compute"
|
||||
type_handler_version = "1.10"
|
||||
automatic_upgrade_enabled = true
|
||||
automatic_upgrade_enabled = false
|
||||
auto_upgrade_minor_version = true
|
||||
settings = jsonencode({
|
||||
commandToExecute = "PowerShell -ExecutionPolicy Unrestricted -EncodedCommand ${textencodebase64(
|
||||
|
|
|
@ -149,7 +149,7 @@ resource "azurerm_virtual_machine_extension" "initialize_linux" {
|
|||
type = "CustomScript"
|
||||
publisher = "Microsoft.Azure.Extensions"
|
||||
type_handler_version = "2.1"
|
||||
automatic_upgrade_enabled = true
|
||||
automatic_upgrade_enabled = false
|
||||
auto_upgrade_minor_version = true
|
||||
virtual_machine_id = "${azurerm_resource_group.workstation.id}/providers/Microsoft.Compute/virtualMachines/${each.value.name}"
|
||||
settings = jsonencode({
|
||||
|
@ -225,7 +225,7 @@ resource "azurerm_virtual_machine_extension" "initialize_windows" {
|
|||
type = "CustomScriptExtension"
|
||||
publisher = "Microsoft.Compute"
|
||||
type_handler_version = "1.10"
|
||||
automatic_upgrade_enabled = true
|
||||
automatic_upgrade_enabled = false
|
||||
auto_upgrade_minor_version = true
|
||||
virtual_machine_id = "${azurerm_resource_group.workstation.id}/providers/Microsoft.Compute/virtualMachines/${each.value.name}"
|
||||
settings = jsonencode({
|
||||
|
|
Загрузка…
Ссылка в новой задаче