forked from ibm-cloud-architecture/terraform-openshift4-gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables-gcp.tf
158 lines (127 loc) · 3.26 KB
/
variables-gcp.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
variable "gcp_project_id" {
type = string
description = "The target GCP project for the cluster."
}
variable "gcp_service_account" {
type = string
description = "The service account for authenticating with GCP APIs."
}
variable "gcp_region" {
type = string
description = "The target GCP region for the cluster."
}
variable "gcp_extra_labels" {
type = map(string)
description = <<EOF
(optional) Extra GCP labels to be applied to created resources.
Example: `{ "key" = "value", "foo" = "bar" }`
EOF
default = {}
}
variable "openshift_master_count" {
type = string
default = 3
}
variable "openshift_worker_count" {
type = string
default = 3
}
variable "openshift_infra_count" {
type = string
default = 0
}
variable "gcp_bootstrap_enabled" {
type = bool
description = "Setting this to false allows the bootstrap resources to be disabled."
default = true
}
variable "gcp_bootstrap_lb" {
type = bool
description = "Setting this to false allows the bootstrap resources to be removed from the cluster load balancers."
default = true
}
variable "gcp_bootstrap_instance_type" {
type = string
description = "Instance type for the bootstrap node. Example: `n1-standard-4`"
default = "n1-standard-4"
}
variable "gcp_master_instance_type" {
type = string
description = "Instance type for the master node(s). Example: `n1-standard-4`"
default = "n1-standard-4"
}
variable "gcp_worker_instance_type" {
type = string
description = "Instance type for the bootstrap node. Example: `n1-standard-4`"
default = "n1-standard-4"
}
variable "gcp_infra_instance_type" {
type = string
description = "Instance type for the master node(s). Example: `n1-standard-4`"
default = "n1-standard-4"
}
variable "gcp_master_os_disk_size" {
type = string
default = 512
}
variable "gcp_worker_os_disk_size" {
type = string
default = 128
}
variable "gcp_infra_os_disk_size" {
type = string
default = 128
}
variable "gcp_image_uri" {
type = string
description = "Image for all nodes."
default = "https://storage.googleapis.com/rhcos/rhcos/42.80.20191002.0.tar.gz"
}
variable "gcp_public_dns_zone_name" {
type = string
default = null
description = "The name of the public DNS zone to use for this cluster"
}
variable "gcp_publish_strategy" {
type = string
description = "The cluster publishing strategy, either Internal or External"
default = "External"
}
##############################################################3
variable "cluster_name" {
type = string
}
variable "base_domain" {
type = string
}
variable "machine_cidr" {
type = string
default = "10.0.0.0/16"
}
variable "openshift_cluster_network_cidr" {
type = string
default = "10.128.0.0/14"
}
variable "openshift_cluster_network_host_prefix" {
type = string
default = 23
}
variable "openshift_service_network_cidr" {
type = string
default = "172.30.0.0/16"
}
variable "openshift_pull_secret" {
type = string
default = "pull-secret"
}
variable "openshift_version" {
type = string
default = "latest"
}
variable "airgapped" {
type = map(string)
default = {
enabled = false
repository = ""
}
}