-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
115 lines (89 loc) · 1.96 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
# GCP variables
variable "region" {
default = "europe-west3"
description = "Region of resources"
}
variable "project_id" {
default = ""
description = "Project id"
}
variable "bucket_name" {
default = "s015937-terraform-state"
description = "Name of the google storage bucket"
}
variable "name" {
default = "prod"
}
# Network variables
variable "subnet_cidr" {
default = "10.10.0.0/24"
description = "Subnet range"
}
# Cloud SQL variables
variable "availability_type" {
default = "ZONAL"
description = "Availability type for HA"
}
# variable "availability_type" {
# default = "REGIONAL"
# description = "Availability type for HA"
# }
variable "sql_instance_size" {
default = "db-f1-micro"
description = "Size of Cloud SQL instances"
}
variable "sql_disk_type" {
default = "PD_HDD"
description = "Cloud SQL instance disk type"
}
variable "sql_disk_size" {
default = "10"
description = "Storage size in GB"
}
variable "sql_require_ssl" {
default = "false"
description = "Enforce SSL connections"
}
variable "sql_master_zone" {
default = "a"
description = "Zone of the Cloud SQL master (a, b, ...)"
}
variable "sql_replica_zone" {
default = "b"
description = "Zone of the Cloud SQL replica (a, b, ...)"
}
variable "sql_connect_retry_interval" {
default = 60
}
variable "sql_user" {
default = "postgres"
}
variable "sql_pass" {
default = ""
}
# GKE variables
variable "min_master_version" {
default = "1.21.5-gke.1302"
}
variable "node_version" {
default = "1.21.5-gke.1302"
}
variable "gke_num_nodes" {
default = 1
}
variable "gke_node_machine_type" {
default = "n1-standard-2"
}
variable "gke_label" {
default = "prod"
}
variable "vmname" {
default = "gitlab-runner"
description = "gitlab-runner"
type = string
}
variable "gitlab_runner_registration_token" {
default = ""
description = "gitlab_runner_registration_token"
type = string
}