-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.tf
139 lines (130 loc) · 3.73 KB
/
defaults.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
130
131
132
133
134
135
136
137
138
139
# This file contains the default values for each component, depending on the provisioner used.
locals {
opensearch_default_provisioner = "helm"
db_default_provisioner = "helm"
airflow_default_provisioner = "helm"
# If the Airflow provisioner is set to "existing", the Airflow database provisioner must be also set to "existing"
airflow_db_default_provisioner = var.airflow.provisioner == "existing" ? "existing" : "helm"
omd_defaults = {
namespace = var.app_namespace
app_version = var.app_version
docker_image_name = var.docker_image_name
docker_image_tag = var.docker_image_tag != null ? var.docker_image_tag : var.app_version
helm_chart_version = var.app_helm_chart_version != null ? var.app_helm_chart_version : var.app_version
docker_image_name = var.docker_image_name
initial_admins = var.initial_admins
principal_domain = var.principal_domain
image_pull_policy = "IfNotPresent"
env_from = var.env_from
extra_envs = var.extra_envs
}
opensearch_aws_defaults = {
aws = {
availability_zone_count = 2
domain_name = "openmetadata"
engine_version = "OpenSearch_2.7"
instance_count = 2
instance_type = "t3.small.search"
tls_security_policy = "Policy-Min-TLS-1-2-2019-07"
}
credentials = {
username = "admin"
password = {
secret_ref = "opensearch-credentials"
secret_key = "password"
}
}
port = "443"
scheme = "https"
volume_size = 10
}
opensearch_helm_defaults = {
volume_size = 15
}
opensearch_existing_defaults = {
port = "443"
scheme = "https"
}
db_aws_defaults = {
aws = {
identifier = "openmetadata"
instance_class = "db.t4g.medium"
multi_az = true
maintenance_window = "Sat:02:00-Sat:03:00"
backup_window = "03:00-04:00"
backup_retention_period = 30
skip_final_snapshot = false
deletion_protection = true
}
engine = {
name = "postgres"
version = "16"
}
port = 5432
db_name = "openmetadata_db"
storage_size = 50
credentials = {
username = "dbadmin"
password = {
secret_ref = "db-secrets"
secret_key = "password"
}
}
}
# When deploying databases with helm, OpenMetadata and Airflow databases are deployed in the same MySQL server.
shared_db_helm_defaults = {
engine = {
name = "mysql"
}
port = "3306"
storage_size = 50
}
airflow_db_aws_defaults = {
aws = {
identifier = "airflow"
instance_class = "db.t4g.micro"
multi_az = true
maintenance_window = "Sat:02:00-Sat:03:00"
backup_window = "03:00-04:00"
backup_retention_period = 30
skip_final_snapshot = false
deletion_protection = true
}
engine = {
name = "postgres"
version = "16"
}
port = 5432
db_name = "airflow"
storage_size = 20
credentials = {
username = "dbadmin"
password = {
secret_ref = "airflow-db-secrets"
secret_key = "password"
}
}
}
airflow_helm_defaults = {
endpoint = "http://openmetadata-deps-web.${var.app_namespace}.svc:8080"
credentials = {
username = "admin"
password = {
secret_ref = "airflow-auth"
secret_key = "password"
}
}
storage = {
logs = 10
dags = 10
}
pvc = {
logs = "airflow-logs"
dags = "airflow-dags"
}
subpath = {
logs = "airflow-logs"
dags = "airflow-dags"
}
}
}