-
Notifications
You must be signed in to change notification settings - Fork 6
/
locals.tf
19 lines (17 loc) · 1.12 KB
/
locals.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
locals {
names = var.disable_naming_conventions ? merge(
{
business_unit = var.metadata.business_unit
environment = var.metadata.environment
location = var.storage.location
market = var.metadata.market
subscription_type = var.metadata.subscription_type
},
var.metadata.product_group != "" ? { product_group = var.metadata.product_group } : {},
var.metadata.product_name != "" ? { product_name = var.metadata.product_name } : {},
var.metadata.resource_group_type != "" ? { resource_group_type = var.metadata.resource_group_type } : {}
) : module.metadata.names
tags = var.disable_naming_conventions ? merge(var.tags, { "admin" = var.admin.name, "email" = var.admin.email, "workspace" = terraform.workspace }) : merge(module.metadata.tags, { "admin" = var.admin.name, "email" = var.admin.email, "workspace" = terraform.workspace }, try(var.tags))
storage_shares = { "dalishare" = var.storage.quotas.dali, "dllsshare" = var.storage.quotas.dll, "sashashare" = var.storage.quotas.sasha,
"datashare" = var.storage.quotas.data, "lzshare" = var.storage.quotas.lz }
}