-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
175 lines (126 loc) · 2.71 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
variable "environment" {
description = "Environment tag, e.g prod"
default = "default"
}
variable "vpc_id" {
description = "VPC id which will host openshift"
}
variable "public_subnet_ids" {
description = "List of Subnets"
type = "list"
}
variable "private_subnet_ids" {
description = "List of Subnets"
type = "list"
}
variable "admin_ssh_key" {
description = "Instance key name"
default = ""
}
variable "management_net" {}
variable "public_domain" {
description = "Public domain name used as parent for all environments"
}
variable "provisioner_ami" {
default = "ami-0d063c6b"
}
variable "provisioner_instance_type" {
default = "m3.large"
}
variable "provisioner_user_data" {
default = "provisioner_user_data.tpl"
}
variable "provisioner_name" {
default = "provisioner"
}
variable "provisioner_spot_price" {
default = "0.10"
}
//<Master nodes variables
variable "master_node_count" {
default = "1"
}
variable "master_ami" {
default = "ami-0d063c6b"
}
variable "master_instance_type" {
default = "m3.large"
}
variable "master_user_data" {
default = "node_user_data.tpl"
}
variable "master_name" {
default = "master"
}
variable "master_spot_price" {
default = "0.10"
}
//>Master nodes variables
//<Infra nodes variables
variable "infra_node_count" {
default = "1"
}
variable "infra_ami" {
default = "ami-0d063c6b"
}
variable "infra_instance_type" {
default = "m3.large"
}
variable "infra_user_data" {
default = "node_user_data.tpl"
}
variable "infra_name" {
default = "infra"
}
variable "infra_spot_price" {
default = "0.10"
}
//>Infra nodes variables
//<app nodes variables
variable "app_node_count" {
default = "1"
}
variable "app_ami" {
default = "ami-0d063c6b"
}
variable "app_instance_type" {
default = "m3.large"
}
variable "app_user_data" {
default = "node_user_data.tpl"
}
variable "app_name" {
default = "app"
}
variable "app_spot_price" {
default = "0.10"
}
//>app nodes variables
//<Ports definitions for masters
variable "allowed_ports_tcp_from_master_to_master" {
default = ["53", "8053", "2049", "2379", "2380", "4001", "8443"]
}
variable "allowed_ports_udp_from_master_to_master" {
default = ["53", "8053", "2049"]
}
variable "allowed_ports_tcp_from_node_to_master" {
default = ["53", "8053", "443", "8443"]
}
variable "allowed_ports_udp_from_node_to_master" {
default = ["53", "8053"]
}
//>
variable "allowed_ovs_port_inside_cluster" {
default = "4789"
}
//<Ports definitions for app nodes
variable "allowed_ports_tcp_from_master_inside_cluster" {
default = ["10250"]
}
//>
//<Ports definitions for infra nodes
variable "allowed_ports_tcp_from_public_to_infra" {
default = ["80", "443"]
//default = []
}
//>