-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
71 lines (58 loc) · 1.27 KB
/
vars.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
# --== General ==--
variable "timezone" {
type = string
}
# --== Docker ==--
variable "docker_host" {
type = string
default = "unix:///var/run/docker.sock"
}
variable "docker_network" {
type = string
}
# --== PostgreSQL ==--
variable "postgres_host" {
type = string
default = "localhost:5432"
}
variable "postgres_port" {
type = number
default = 5432
}
variable "postgres_root_user" {
type = string
default = "postgres"
}
variable "postgres_root_password" {
type = string
sensitive = true
}
# --== SonarQube ==--
variable "sonar_container_prefix" {
type = string
default = "iv-buildsystem-"
}
variable "sonar_volume_host_path" {
type = string
}
variable "sonar_db_url" {
type = string
}
variable "sonar_db_username" {
type = string
default = "sonarqube"
}
variable "sonar_db_password" {
type = string
sensitive = true
}
variable "sonar_enable_port_mapping" {
description = "Enable port mapping for SonarQube"
type = bool
default = false # Default to false, meaning no port mapping
}
variable "sonar_host_port" {
description = "Host port to map to the SonarQube container's port 9000"
type = number
default = 9000 # Default to 9000; change if needed
}