-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
189 lines (148 loc) · 4.28 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
##### Google Cloud Access Credentials ######
##### Common VM specifications ######
# Provide values for these in terraform.tfvars
variable "image_type" {
default = {
project = "ubuntu-os-cloud"
family = "ubuntu-1604-lts"
}
}
variable "region"
{
default = "us-central1"
description = "The region the resource should be created in."
}
variable "zone"
{
default = "a"
description = "The region zone the resource should be created in."
}
variable "deployment"
{
default = ""
description = "A unique name for the resource, required by GCE."
}
variable "ssh_user" {
default = "icpdeploy"
}
variable "network_interface" {
default = "ens4"
}
variable "docker_package_location" {
description = "URI for docker package location, e.g. http://<myhost>/icp-docker-17.09_x86_64.bin or nfs:<myhost>/icp-docker-17.09_x86_64.bin"
default = ""
}
variable "download_user" {
type = "string"
}
variable "download_user_password" {
type = "string"
}
variable "image_location" {
description = "URI for image package location, e.g. http://<myhost>/ibm-cloud-private-x86_64-2.1.0.2.tar.gz or nfs:<myhost>/ibm-cloud-private-x86_64-2.1.0.2.tar.gz"
default = ""
}
variable "subnet_cidr" {
description = "VPC subnetwork CIDR "
default = "10.20.0.0/20"
}
variable "pod_network_cidr" {
description = "Pod network CIDR "
default = "172.20.0.0/16"
}
variable "service_network_cidr" {
description = "Service network CIDR "
default = "172.21.0.0/16"
}
##### ICP Instance details ######
variable "boot" {
type = "map"
default = {
nodes = 1
cpu = 2
memory = 4096
disk_size = 100 # Specify size or leave empty to use same size as template.
docker_vol_size = 100 # Specify size for docker disk, default 100.
}
}
variable "master" {
type = "map"
default = {
nodes = 3
cpu = 8
memory = 16384
disk_size = 300 # Specify size or leave empty to use same size as template.
docker_vol_size = 100 # Specify size for docker disk, default 100.
}
}
variable "proxy" {
type = "map"
default = {
nodes = 3
cpu = 4
memory = 4096
disk_size = 150 # Specify size or leave empty to use same size as template.
docker_vol_size = 100 # Specify size for docker disk, default 100.
}
}
variable "mgmt" {
type = "map"
default = {
nodes = 3
cpu = 4
memory = 16384
disk_size = 200 # Specify size or leave empty to use same size as template.
docker_vol_size = 100 # Specify size for docker disk, default 100.
}
}
variable "va" {
type = "map"
default = {
nodes = 0
cpu = 8
memory = 16384
disk_size = 400 # Specify size or leave empty to use same size as template.
docker_vol_size = 100 # Specify size for docker disk, default 100.
}
}
variable "worker" {
type = "map"
default = {
nodes = 3
cpu = 4
memory = 16384
disk_size = 150 # Specify size or leave empty to use same size as template.
docker_vol_size = 100 # Specify size for docker disk, default 100.
}
}
variable "icppassword" {
description = "Password for the initial admin user in ICP; blank to generate"
default = ""
}
variable "icp_inception_image" {
description = "ICP image to use for installation"
default = "ibmcom/icp-inception-amd64:3.1.1-ee"
}
variable "cluster_cname" {
default = ""
}
variable "registry_server" {
default = ""
}
variable "registry_username" {
default = ""
}
variable "registry_password" {
default = ""
}
variable "service_account_email" {
description = "The service account email address to attach to all compute instances, leave blank to use the default service account"
default = ""
}
# The following services can be disabled for 3.1
# custom-metrics-adapter, image-security-enforcement, istio, metering, monitoring, service-catalog, storage-minio, storage-glusterfs, and vulnerability-advisor
variable "disabled_management_services" {
description = "List of management services to disable"
type = "list"
default = ["istio", "vulnerability-advisor", "storage-glusterfs", "storage-minio"]
}