This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
134 lines (112 loc) · 3.33 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
# ---------------------------------------------------------------------------------------------------------------------
# Environmental variables
# You probably want to define these as environmental variables.
# Instructions on that are here: https://github.com/cloud-partners/oci-prerequisites
# ---------------------------------------------------------------------------------------------------------------------
# Required by the OCI Provider
variable "tenancy_ocid" {
}
variable "compartment_ocid" {
}
variable "user_ocid" {
}
variable "fingerprint" {
}
variable "private_key_path" {
}
variable "region" {
}
# Key used to SSH to OCI VMs
variable "ssh_public_key" {
}
variable "ssh_private_key" {
}
# ---------------------------------------------------------------------------------------------------------------------
# Optional variables
# The defaults here will give you a cluster. You can also modify these.
# ---------------------------------------------------------------------------------------------------------------------
variable "availability_domain_name" {
default = ""
description = "Availability Domain name, if non-empty takes precedence over availability_domain_number"
}
variable "availability_domain_number" {
default = 1
description = "OCI Availability Domains: 1,2,3 (subject to region availability)"
}
variable "confluent" {
type = map(string)
default = {
edition = "Enterprise"
version = "6.0.0"
}
}
variable "broker" {
type = map(string)
default = {
shape = "VM.Standard2.4"
node_count = 3
disk_count = 1
disk_size = 50
}
}
variable "zookeeper" {
type = map(string)
default = {
shape = "VM.Standard2.1"
node_count = 3
}
}
variable "connect" {
type = map(string)
default = {
shape = "VM.Standard2.2"
node_count = 2
}
}
variable "rest" {
type = map(string)
default = {
shape = "VM.Standard2.2"
node_count = 2
}
}
variable "schema_registry" {
type = map(string)
default = {
shape = "VM.Standard2.1"
node_count = 1
}
}
variable "ksql" {
type = map(string)
default = {
shape = "VM.Standard2.1"
node_count = 2
}
}
variable "control_center" {
type = map(string)
default = {
shape = "VM.Standard2.2"
node_count = 1
}
}
# ---------------------------------------------------------------------------------------------------------------------
# Constants
# You probably don't need to change these.
# ---------------------------------------------------------------------------------------------------------------------
// https://docs.cloud.oracle.com/iaas/images/image/66379f54-edd0-4294-895f-47291a3eb4ed/
// Oracle-Linux-7.6-2019.02.20-0
variable "images" {
type = map(string)
default = {
ca-toronto-1 = "ocid1.image.oc1.ca-toronto-1.aaaaaaaa7ac57wwwhputaufcbf633ojir6scqa4yv6iaqtn3u64wisqd3jjq"
eu-frankfurt-1 = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaa527xpybx2azyhcz2oyk6f4lsvokyujajo73zuxnnhcnp7p24pgva"
uk-london-1 = "ocid1.image.oc1.uk-london-1.aaaaaaaarruepdlahln5fah4lvm7tsf4was3wdx75vfs6vljdke65imbqnhq"
us-ashburn-1 = "ocid1.image.oc1.iad.aaaaaaaannaquxy7rrbrbngpaqp427mv426rlalgihxwdjrz3fr2iiaxah5a"
us-phoenix-1 = "ocid1.image.oc1.phx.aaaaaaaacss7qgb6vhojblgcklnmcbchhei6wgqisqmdciu3l4spmroipghq"
}
}
variable "vpc-cidr" {
default = "10.0.0.0/16"
}