~damien/infrastructure

infrastructure/terraform/main.tf -rw-r--r-- 660 bytes
41e11f7d — Damien Radtke Use blue-green terraform strategy for cluster upgrades 2 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
provider "linode" {
  token = var.linode_token
}

provider "random" {}

data "linode_profile" "me" {}

variable linode_token { type = string }
variable ca_host { type = string }
variable ca_key { type = string }
variable vault_token { type = string }

module "cluster-blue" {
	source = "./cluster"

	linode_token = var.linode_token
	ca_host = var.ca_host
	ca_key = var.ca_key
	vault_token = var.vault_token

	region = "ca-central"
	image = "linode/opensuse15.2"
  instance_type    = "g6-nanode-1"
  authorized_users = [data.linode_profile.me.username]

  consul_version = "1.9.0"
  nomad_version  = "1.0.1"
  vault_version  = "1.6.1"
}

// TODO: cluster-green