-
Notifications
You must be signed in to change notification settings - Fork 42
/
r-tools.tf
119 lines (91 loc) · 4.72 KB
/
r-tools.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
module "appgw" {
source = "./tools/agic"
agic_enabled = var.agic_enabled
agic_chart_repository = var.agic_chart_repository
agic_chart_version = coalesce(var.agic_helm_version, var.agic_chart_version)
stack = var.stack
environment = var.environment
location = var.location
location_short = var.location_short
client_name = var.client_name
name = local.appgw_name
resource_group_name = var.resource_group_name
app_gateway_subnet_id = var.appgw_subnet_id
custom_diagnostic_settings_name = var.custom_diagnostic_settings_name
logs_destinations_ids = var.logs_destinations_ids
logs_categories = var.logs_categories
logs_metrics_categories = var.logs_metrics_categories
ip_name = local.appgw_settings.ip_name
ip_sku = local.appgw_settings.ip_sku
ip_allocation_method = local.appgw_settings.ip_allocation_method
frontend_ip_configuration_name = local.appgw_settings.frontend_ip_configuration_name
frontend_priv_ip_configuration_name = local.appgw_settings.frontend_priv_ip_configuration_name
gateway_ip_configuration_name = local.appgw_settings.gateway_ip_configuration_name
gateway_identity_id = local.appgw_settings.identity
sku_name = local.appgw_settings.sku_name
sku_tier = local.appgw_settings.sku_tier
sku_capacity = local.appgw_settings.sku_capacity
zones = local.appgw_settings.zones
policy_name = local.appgw_settings.policy_name
enabled_waf = local.appgw_settings.enabled_waf
file_upload_limit_mb = local.appgw_settings.file_upload_limit_mb
max_request_body_size_kb = local.appgw_settings.max_request_body_size_kb
request_body_check = local.appgw_settings.request_body_check
rule_set_type = local.appgw_settings.rule_set_type
rule_set_version = local.appgw_settings.rule_set_version
firewall_mode = local.appgw_settings.firewall_mode
use_existing_application_gateway = var.use_existing_application_gateway
application_gateway_id = var.application_gateway_id
appgw_backend_http_settings = local.appgw_settings.appgw_backend_http_settings
appgw_backend_pools = local.appgw_settings.appgw_backend_pools
appgw_probes = local.appgw_settings.appgw_probes
appgw_routings = local.appgw_settings.appgw_routings
appgw_rewrite_rule_set = local.appgw_settings.appgw_rewrite_rule_set
appgw_http_listeners = local.appgw_settings.appgw_http_listeners
frontend_port_settings = local.appgw_settings.frontend_port_settings
ssl_certificates_configs = var.appgw_ssl_certificates_configs
app_gateway_tags = local.appgw_settings.app_gateway_tags
ip_tags = local.appgw_settings.ip_tags
aks_aad_pod_identity_id = module.infra.aad_pod_identity_id
aks_aad_pod_identity_client_id = module.infra.aad_pod_identity_client_id
aks_aad_pod_identity_principal_id = module.infra.aad_pod_identity_principal_id
appgw_ingress_values = var.appgw_ingress_controller_values
private_ingress = var.private_ingress
appgw_private_ip = var.appgw_private_ip
}
module "certmanager" {
source = "./tools/cert-manager"
enable_cert_manager = var.enable_cert_manager
cert_manager_namespace = var.cert_manager_namespace
cert_manager_chart_repository = var.cert_manager_chart_repository
cert_manager_chart_version = var.cert_manager_chart_version
cert_manager_settings = var.cert_manager_settings
}
module "kured" {
source = "./tools/kured"
enable_kured = var.enable_kured
kured_settings = var.kured_settings
kured_chart_repository = var.kured_chart_repository
kured_chart_version = var.kured_chart_version
}
module "velero" {
depends_on = [azurerm_kubernetes_cluster.aks]
source = "./tools/velero"
enable_velero = var.enable_velero
client_name = var.client_name
stack = var.stack
environment = var.environment
location = var.location
location_short = var.location_short
name_prefix = var.name_prefix
resource_group_name = var.resource_group_name
aks_nodes_resource_group_name = azurerm_kubernetes_cluster.aks.node_resource_group
nodes_subnet_id = var.nodes_subnet_id
velero_namespace = var.velero_namespace
velero_chart_repository = var.velero_chart_repository
velero_chart_version = var.velero_chart_version
velero_values = var.velero_values
velero_storage_settings = var.velero_storage_settings
velero_identity_custom_name = var.velero_identity_custom_name
velero_identity_tags = merge(local.default_tags, var.velero_identity_extra_tags)
}