-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
140 lines (125 loc) · 3.49 KB
/
variables.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
140
variable "grafana_image" {
type = string
description = "Grafana Docker image to use"
default = "grafana/grafana:10.2.2"
}
variable "cf_space_id" {
type = string
description = "The id of the CF Space to deploy in"
}
variable "cf_domain_name" {
type = string
description = "The CF domain to use for Grafana"
default = ""
}
variable "name_postfix" {
type = string
description = "The postfix string to append to the hostname, prevents namespace clashes"
}
variable "environment" {
type = map(any)
description = "Environment variables for Grafana app"
default = {}
}
variable "network_policies" {
description = "The container-to-container network policies to create with Grafana as the source app"
type = list(object({
destination_app = string
protocol = string
port = string
}))
default = []
}
variable "memory" {
type = number
description = "The amount of RAM to allocate for Grafana (MB)"
default = 512
}
variable "disk" {
type = number
description = "The amount of Disk space to allocate for Grafana (MB)"
default = 1024
}
variable "strategy" {
type = string
description = "The deployment strategy to use"
default = "rolling"
}
variable "db_broker" {
type = string
description = "The Database broker to use for requesting a PostgreSQL database"
default = "hsdp-rds"
}
variable "db_plan" {
type = string
description = "The Database plan to use"
default = "postgres-micro-dev"
}
variable "db_json_params" {
type = string
description = "Optional DB JSON params"
default = "{}"
}
variable "enable_postgres" {
type = bool
description = "Enable or disables postgres persistence"
default = true
}
variable "grafana_username" {
type = string
description = "The Grafana username to use"
}
variable "grafana_password" {
type = string
description = "The Grafana password to use"
}
variable "pg_exporter_image" {
type = string
default = "quay.io/prometheuscommunity/postgres-exporter:latest"
}
variable "iam_application_id" {
type = string
description = "The IAM application ID to create the OAuth2 client. If provided, Grafana will use IAM for authentication"
default = ""
}
variable "oauth2_client_id" {
type = string
description = "The OAuth2 client ID to use for Grafana integration with IAM"
default = ""
}
variable "oauth2_client_password" {
type = string
description = "The OAuth2 client password to use for Grafana integration with IAM"
default = ""
sensitive = true
}
variable "email_domains" {
type = list(string)
description = "Allowed email domains for accessing Grafana"
default = ["philips.com"]
}
variable "oauth_allow_signup" {
type = bool
description = "Allow automatic signup when OAuth2 is enabled"
default = false
}
variable "auto_assign_org_role" {
type = string
description = "The default role to assign to auto signup users"
default = "Viewer"
}
variable "grafana_service_bindings" {
type = list(object({ service_instance = string }))
description = "A list of service instances that should be bound to the grafana app"
default = []
}
variable "docker_username" {
type = string
description = "Docker registry username"
default = ""
}
variable "docker_password" {
type = string
description = "Docker registry password"
default = ""
}