caf-terraform-landingzones/caf_solution/vmss_extensions.tf

42 строки
2.1 KiB
HCL

# module "vmss_extension_microsoft_azure_domainjoin" {
# # source = "aztfmod/caf/azurerm//modules/compute/virtual_machine_scale_set_extensions"
# # version = "5.5.5"
# source = "git::https://github.com/aztfmod/terraform-azurerm-caf.git//modules/compute/virtual_machine_scale_set_extensions?ref=AL-base-tags"
# depends_on = [module.solution]
# for_each = {
# for key, value in try(var.virtual_machine_scale_sets, {}) : key => value
# if try(value.virtual_machine_scale_set_extensions.microsoft_azure_domainjoin, null) != null
# }
# client_config = module.solution.client_config
# virtual_machine_scale_set_id = module.solution.virtual_machine_scale_sets[each.key].id
# extension = each.value.virtual_machine_scale_set_extensions.microsoft_azure_domainjoin
# extension_name = "microsoft_azure_domainJoin"
# keyvaults = merge(tomap({ (var.landingzone.key) = module.solution.keyvaults }), try(local.remote.keyvaults, {}))
# }
# module "vmss_extension_custom_scriptextension" {
# # source = "aztfmod/caf/azurerm//modules/compute/virtual_machine_scale_set_extensions"
# # version = "5.5.5"
# source = "git::https://github.com/aztfmod/terraform-azurerm-caf.git//modules/compute/virtual_machine_scale_set_extensions?ref=AL-base-tags"
# depends_on = [module.solution]
# for_each = {
# for key, value in try(var.virtual_machine_scale_sets, {}) : key => value
# if try(value.virtual_machine_scale_set_extensions.custom_script, null) != null
# }
# client_config = module.solution.client_config
# virtual_machine_scale_set_id = module.solution.virtual_machine_scale_sets[each.key].id
# extension = each.value.virtual_machine_scale_set_extensions.custom_script
# extension_name = "custom_script"
# managed_identities = merge(tomap({ (var.landingzone.key) = module.solution.managed_identities }), try(local.remote.managed_identities, {}))
# storage_accounts = merge(tomap({ (var.landingzone.key) = module.solution.storage_accounts }), try(local.remote.storage_accounts, {}))
# }