func getHPCCacheBase()

in src/terraform/providers/terraform-provider-avere/restore_backup.go [32:93]


func getHPCCacheBase() string {
	return `// customize the HPC Cache by editing the following local variables
locals {
    // the region of the deployment
    location = "eastus"
	
	// hpc cache details
    hpc_cache_resource_group_name = "hpc_cache_resource_group"
    
    // virtual network details
    virtual_network_resource_group = "network_resource_group"
    virtual_network_name = "vnet_name"
    virtual_network_subnet_name = "subnet_name"
}

provider "azurerm" {
    version = "~>2.12.0"
    features {}
}

data "azurerm_subnet" "subnet" {
  name                 = local.virtual_network_subnet_name
  virtual_network_name = local.virtual_network_name
  resource_group_name  = local.virtual_network_resource_group
}

resource "azurerm_resource_group" "hpc_cache_rg" {
    name     = local.hpc_cache_resource_group_name
    location = local.location
}

resource "azurerm_hpc_cache" "hpc_cache" {
    location            = azurerm_resource_group.hpc_cache_rg.location
    resource_group_name = azurerm_resource_group.hpc_cache_rg.name
    subnet_id           = data.azurerm_subnet.subnet.id
  
    // HPC Cache Size - 5 allowed sizes (GBs) for the cache
    //     3072
    //     6144
    //    12288
    //    24576
    //    49152
    cache_size_in_gb    = 12288
  
    // HPC Cache Throughput SKU - 3 allowed values for throughput (GB/s) of the cache
    //    Standard_2G
    //    Standard_4G
    //    Standard_8G
    sku_name            = "Standard_2G"
  
    name                = "%s"
}

// filer targets: azurerm_hpc_cache_nfs_target
%s
// storage targets: azurerm_hpc_cache_nfs_target
%s
output "mount_addresses" {
  value = azurerm_hpc_cache.hpc_cache.mount_addresses
}
`
}