forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compute_virtual_machines_scale_sets_extensions.tf
129 lines (104 loc) · 6.21 KB
/
compute_virtual_machines_scale_sets_extensions.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
module "vmss_extension_custom_scriptextension" {
source = "./modules/compute/virtual_machine_scale_set_extensions"
for_each = {
for key, value in try(local.compute.virtual_machine_scale_sets, {}) : key => value
if try(value.virtual_machine_scale_set_extensions.custom_script, null) != null
}
client_config = local.client_config
virtual_machine_scale_set_id = module.virtual_machine_scale_sets[each.key].id
extension = each.value.virtual_machine_scale_set_extensions.custom_script
extension_name = "custom_script"
managed_identities = local.combined_objects_managed_identities
storage_accounts = local.combined_objects_storage_accounts
virtual_machine_scale_set_os_type = module.virtual_machine_scale_sets[each.key].os_type
}
module "vmss_extension_microsoft_azure_domainjoin" {
source = "./modules/compute/virtual_machine_scale_set_extensions"
for_each = {
for key, value in try(local.compute.virtual_machine_scale_sets, {}) : key => value
if try(value.virtual_machine_scale_set_extensions.microsoft_azure_domainjoin, null) != null
}
client_config = local.client_config
virtual_machine_scale_set_id = module.virtual_machine_scale_sets[each.key].id
extension = each.value.virtual_machine_scale_set_extensions.microsoft_azure_domainjoin
extension_name = "microsoft_azure_domainJoin"
keyvaults = local.combined_objects_keyvaults
}
module "vmss_extension_microsoft_monitoring_agent" {
source = "./modules/compute/virtual_machine_scale_set_extensions"
for_each = {
for key, value in try(local.compute.virtual_machine_scale_sets, {}) : key => value
if try(value.virtual_machine_scale_set_extensions.microsoft_monitoring_agent, null) != null
}
client_config = local.client_config
virtual_machine_scale_set_id = module.virtual_machine_scale_sets[each.key].id
extension = each.value.virtual_machine_scale_set_extensions.microsoft_monitoring_agent
extension_name = "microsoft_monitoring_agent"
virtual_machine_scale_set_os_type = module.virtual_machine_scale_sets[each.key].os_type
log_analytics_workspaces = local.combined_objects_log_analytics
}
module "vmss_extension_dependency_agent" {
source = "./modules/compute/virtual_machine_scale_set_extensions"
for_each = {
for key, value in try(local.compute.virtual_machine_scale_sets, {}) : key => value
if try(value.virtual_machine_scale_set_extensions.dependency_agent, null) != null
}
client_config = local.client_config
virtual_machine_scale_set_id = module.virtual_machine_scale_sets[each.key].id
extension = each.value.virtual_machine_scale_set_extensions.dependency_agent
extension_name = "dependency_agent"
virtual_machine_scale_set_os_type = module.virtual_machine_scale_sets[each.key].os_type
}
module "vmss_extension_application_health_extension" {
source = "./modules/compute/virtual_machine_scale_set_extensions"
for_each = {
for key, value in try(local.compute.virtual_machine_scale_sets, {}) : key => value
if try(value.virtual_machine_scale_set_extensions.microsoft_azure_health_extension, null) != null
}
client_config = local.client_config
virtual_machine_scale_set_id = module.virtual_machine_scale_sets[each.key].id
virtual_machine_scale_set_os_type = module.virtual_machine_scale_sets[each.key].os_type
extension = each.value.virtual_machine_scale_set_extensions.microsoft_azure_health_extension
extension_name = "microsoft_azure_health_extension"
}
module "vmss_extension_keyvault_extension" {
source = "./modules/compute/virtual_machine_scale_set_extensions"
for_each = {
for key, value in try(local.compute.virtual_machine_scale_sets, {}) : key => value
if try(value.virtual_machine_scale_set_extensions.microsoft_azure_keyvault, null) != null
}
client_config = local.client_config
virtual_machine_scale_set_id = module.virtual_machine_scale_sets[each.key].id
extension = each.value.virtual_machine_scale_set_extensions.microsoft_azure_keyvault
extension_name = "microsoft_azure_keyvault"
managed_identities = local.combined_objects_managed_identities
}
module "vmss_extension_custom_script_data_factory_self_hosted_runtime" {
source = "./modules/compute/virtual_machine_scale_set_extensions"
for_each = {
for key, value in try(local.compute.virtual_machine_scale_sets, {}) : key => value
if try(value.virtual_machine_scale_set_extensions.data_factory_self_hosted_integration_runtime, null) != null
}
client_config = local.client_config
virtual_machine_scale_set_id = module.virtual_machine_scale_sets[each.key].id
extension = each.value.virtual_machine_scale_set_extensions.data_factory_self_hosted_integration_runtime
extension_name = "data_factory_self_hosted_integration_runtime"
virtual_machine_scale_set_os_type = module.virtual_machine_scale_sets[each.key].os_type
remote_objects = {
data_factory_integration_runtime_self_hosted = local.combined_objects_data_factory_integration_runtime_self_hosted
managed_identities = local.combined_objects_managed_identities
storage_accounts = local.combined_objects_storage_accounts
}
}
module "vmss_extension_generic" {
source = "./modules/compute/virtual_machine_scale_set_extensions"
for_each = {
for key, value in try(local.compute.virtual_machine_scale_sets, {}) : key => value
if try(value.virtual_machine_scale_set_extensions.generic_extensions, null) != null
}
client_config = local.client_config
virtual_machine_scale_set_id = module.virtual_machine_scale_sets[each.key].id
virtual_machine_scale_set_os_type = module.virtual_machine_scale_sets[each.key].os_type
extension = each.value.virtual_machine_scale_set_extensions.generic_extensions
extension_name = "generic_extension"
}