hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

Support for Azure HPC Cache Storage Target #6014

Closed magodo closed 4 years ago

magodo commented 4 years ago

Community Note

Description

Now that #5504 has been addressed, we have got azurerm_hpc_cache supported. To complement the use case for hpc cache, we might need to also support storage target for the hpc cache.

Currently hpc cache has two choices of storage target: nfs and blob container. I propose to add two resources for them accordingly.

New or Affected Resource(s)

Potential Terraform Configuration

resource "azurerm_hpc_cache_blob_target" "example" {
  name                 = "examplehpccblobtarget"
  resource_group_name  = "examplerg
  cache_name           = "examplecache"
  storage_container_id = "/xxx"
  namespace_path       = "/blob_storage"
}
resource "azurerm_hpc_cache_nfs_target" "example" {
  name                     = "examplehpcnfstarget"
  resource_group_name      = "examplerg"
  cache_name               = "examplecache"
  host_name                = "1.2.3.4"
  usage_model              = "READ_HEAVY_INFREQ"
  namespace_junction {
    namespace_path = "/nfs/a1"
    nfs_export = "/export/a"
    target_path = "1"
  }
  namespace_junction {
    namespace_path = "/nfs/b"
    nfs_export = "/export/b"
  }
}
ghost commented 4 years ago

This has been released in version 2.4.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.4.0"
}
# ... other configuration ...
ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!