Page MenuHomeSoftware Heritage

D7544.diff
No OneTemporary

D7544.diff

diff --git a/azure/terraform/modules/gitlab/main.tf b/azure/terraform/modules/gitlab/main.tf
--- a/azure/terraform/modules/gitlab/main.tf
+++ b/azure/terraform/modules/gitlab/main.tf
@@ -44,7 +44,8 @@
}
resource "azurerm_storage_container" "gitlab_storage_container" {
- name = "gitlab-content"
+ count = length(var.blob_storage_containers)
+ name = var.blob_storage_containers[count.index]
storage_account_name = azurerm_storage_account.gitlab_storage.name
container_access_type = "private"
}
diff --git a/azure/terraform/modules/gitlab/variables.tf b/azure/terraform/modules/gitlab/variables.tf
--- a/azure/terraform/modules/gitlab/variables.tf
+++ b/azure/terraform/modules/gitlab/variables.tf
@@ -13,3 +13,12 @@
description = "Blob storage name. lower case, only letters and numbers"
type = string
}
+
+variable "blob_storage_containers" {
+ description = "Blob storage containers to create on the storage account"
+ type = list(string)
+ default = [
+ "artifacts", "registry", "external-diffs", "lfs-objects", "uploads",
+ "packages", "dependency-proxy", "terraform", "pages",
+ ]
+}

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 17, 10:33 AM (3 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222385

Event Timeline