-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvms.tf
79 lines (65 loc) · 1.97 KB
/
vms.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
module "oracle_prod" {
# do not increase, otherwise it will cost money!
# do not reduce, otherwise you will loose data!
count = var.enable_oracle_prod ? 1 : 0
source = "./modules/oracle_composed/free_arm_vm"
providers = {
oci = oci.prod
}
name = "control-plane"
tenant_id = jsondecode(data.config_ini.cfg_oracle_prod.json)["tenancy"]
image_version = "22.04"
ports = []
}
module "oracle_beta" {
# do not increase, otherwise it will cost money!
# do not reduce, otherwise you will loose data!
count = var.enable_oracle_beta ? 1 : 0
source = "./modules/oracle_composed/free_arm_vm"
providers = {
oci = oci.beta
}
name = "node0"
tenant_id = jsondecode(data.config_ini.cfg_oracle_beta.json)["tenancy"]
image_version = "22.04"
ports = []
cpus = 2
memory = 12
boot_bolume_size = 100
}
module "oracle_beta2" {
# do not increase, otherwise it will cost money!
# do not reduce, otherwise you will loose data!
count = var.enable_oracle_beta ? 1 : 0
source = "./modules/oracle_composed/free_arm_vm"
providers = {
oci = oci.beta
}
name = "node1"
tenant_id = jsondecode(data.config_ini.cfg_oracle_beta.json)["tenancy"]
image_version = "22.04"
ports = []
cpus = 2
memory = 12
boot_bolume_size = 100
}
module "hetzner" {
count = var.enable_hetzner ? 1 : 0
source = "./modules/hetzner_composed/vm"
name = "instance-${count.index}"
server_type = "cax11"
location = "fsn1"
image = "ubuntu-22.04"
}
module "equinix" {
count = var.enable_equinix ? 1 : 0
source = "./modules/equinix_composed/testing_env"
name = "instance-${count.index}"
org_name = "tibeer"
}
module "google" {
count = var.enable_google ? 1 : 0
source = "./modules/google_composed/free_vm"
name = "instance-${count.index}"
public_ptr_domain_name = "google.${var.dns_zone}"
}