|
1 | 1 | module "cluster" {
|
2 |
| - source = "github.com/Ujstor/terraform-hetzner-modules//modules/cluster?ref=v0.0.3" |
| 2 | + source = "github.com/Ujstor/terraform-hetzner-modules//modules/cluster?ref=v0.0.8" |
3 | 3 |
|
4 | 4 | ssh_key_name = "coolify_cluster_prod_key"
|
5 | 5 | ssh_key_path = ".ssh" # create dir in root where terraform is executed
|
6 | 6 |
|
7 | 7 | server_config = {
|
8 | 8 | controller = {
|
9 |
| - location = "fsn1" |
10 |
| - server_type = "cx22" |
11 |
| - labels = "controller" |
| 9 | + location = "fsn1" |
| 10 | + server_type = "cx22" |
| 11 | + labels = { |
| 12 | + controller = "true" |
| 13 | + } |
12 | 14 | ipv4_enabled = true
|
13 | 15 | ipv6_enabled = false
|
14 | 16 | subnet_id = module.network_config.subnet_id.subnet-1.subnet_id
|
15 | 17 | subnet_ip = "10.0.1.1"
|
16 | 18 | }
|
17 | 19 | worker-1 = {
|
18 |
| - location = "nbg1" |
19 |
| - server_type = "cx22" |
20 |
| - labels = "worker" |
| 20 | + location = "nbg1" |
| 21 | + server_type = "cx22" |
| 22 | + labels = { |
| 23 | + worker = "true" |
| 24 | + } |
21 | 25 | ipv4_enabled = true
|
22 | 26 | ipv6_enabled = false
|
23 | 27 | subnet_id = module.network_config.subnet_id.subnet-2.subnet_id
|
24 | 28 | subnet_ip = "10.0.2.1"
|
25 | 29 | }
|
26 | 30 | worker-2 = {
|
27 |
| - location = "hel1" |
28 |
| - server_type = "cx22" |
29 |
| - labels = "worker" |
| 31 | + location = "hel1" |
| 32 | + server_type = "cx22" |
| 33 | + labels = { |
| 34 | + worker = "true" |
| 35 | + } |
30 | 36 | ipv4_enabled = true
|
31 | 37 | ipv6_enabled = false
|
32 | 38 | subnet_id = module.network_config.subnet_id.subnet-2.subnet_id
|
33 | 39 | subnet_ip = "10.0.2.2"
|
34 | 40 | }
|
35 | 41 | worker-3 = {
|
36 |
| - location = "hel1" |
37 |
| - server_type = "cx22" |
38 |
| - labels = "worker" |
| 42 | + location = "hel1" |
| 43 | + server_type = "cx22" |
| 44 | + labels = { |
| 45 | + worker = "true" |
| 46 | + } |
39 | 47 | ipv4_enabled = true
|
40 | 48 | ipv6_enabled = false
|
41 | 49 | subnet_id = module.network_config.subnet_id.subnet-2.subnet_id
|
@@ -99,7 +107,7 @@ module "cluster" {
|
99 | 107 | }
|
100 | 108 |
|
101 | 109 | module "cloudflare_record" {
|
102 |
| - source = "github.com/Ujstor/terraform-hetzner-modules//modules/network/cloudflare_record?ref=v0.0.3" |
| 110 | + source = "github.com/Ujstor/terraform-hetzner-modules//modules/network/cloudflare_record?ref=v0.0.8" |
103 | 111 |
|
104 | 112 | cloudflare_record = {
|
105 | 113 | controller = {
|
@@ -161,30 +169,8 @@ module "cloudflare_record" {
|
161 | 169 | }
|
162 | 170 | }
|
163 | 171 |
|
164 |
| -module "volumes" { |
165 |
| - source = "github.com/Ujstor/terraform-hetzner-modules//modules/volumes?ref=v0.0.3" |
166 |
| - |
167 |
| - volume_config = { |
168 |
| - volume-1 = { |
169 |
| - size = 100 |
170 |
| - location = module.cluster.server_status.worker-1.location |
171 |
| - server_id = module.cluster.server_status.worker-1.id |
172 |
| - } |
173 |
| - volume-2 = { |
174 |
| - size = 100 |
175 |
| - location = module.cluster.server_status.worker-2.location |
176 |
| - server_id = module.cluster.server_status.worker-2.id |
177 |
| - } |
178 |
| - volume-3 = { |
179 |
| - size = 100 |
180 |
| - location = module.cluster.server_status.worker-3.location |
181 |
| - server_id = module.cluster.server_status.worker-3.id |
182 |
| - } |
183 |
| - } |
184 |
| -} |
185 |
| - |
186 | 172 | module "network_config" {
|
187 |
| - source = "github.com/Ujstor/terraform-hetzner-modules//modules/network/vpc_subnet?ref=v0.0.3" |
| 173 | + source = "github.com/Ujstor/terraform-hetzner-modules//modules/network/vpc_subnet?ref=v0.0.8" |
188 | 174 |
|
189 | 175 | vpc_config = {
|
190 | 176 | vpc_name = "coolify"
|
|
0 commit comments