~damien/infrastructure

infrastructure/terraform/domains.tf -rw-r--r-- 1.1 KiB
41e11f7dDamien Radtke Use blue-green terraform strategy for cluster upgrades 5 months ago
                                                                                
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
module "damienradtke-com" {
  source    = "./domain-address"
  domain    = "damienradtke.com"
  instances = module.cluster-blue.nomad-client-load-balancers
}

module "www-damienradtke-com" {
  source    = "./domain-address"
  domain    = "damienradtke.com"
  name      = "www"
  instances = module.cluster-blue.nomad-client-load-balancers
}

module "photos-radtke-family" {
  source    = "./domain-address"
  domain    = "radtke.family"
  name      = "photos"
  instances = module.cluster-blue.nomad-client-load-balancers
}

module "consul-damienradtke-com" {
  source    = "./domain-address"
  domain    = "damienradtke.com"
  name      = "consul"
  instances = [module.cluster-blue.consul-servers[0]]
}

module "nomad-damienradtke-com" {
  source    = "./domain-address"
  domain    = "damienradtke.com"
  name      = "nomad"
  instances = [module.cluster-blue.nomad-servers[0]]
}

/*
module "vault-damienradtke-com" {
  source    = "./domain-address"
  domain    = "damienradtke.com"
  name      = "vault"
  instances = flatten([[module.vault-server-blue.instances[0]], [module.vault-server-green.instances[0]]])
}
*/