open-nomad/demo/digitalocean/terraform/main.tf
2015-09-23 15:09:43 -07:00

41 lines
743 B
HCL

variable "image" { default = "nomad-1443043155" }
module "servers" {
source = "./server"
region = "nyc3"
count = 3
image = "${var.image}"
}
module "clients-ams2" {
source = "./client"
region = "ams2"
count = 1
image = "${var.image}"
servers = "${module.servers.addrs}"
}
module "clients-ams3" {
source = "./client"
region = "ams3"
count = 1
image = "${var.image}"
servers = "${module.servers.addrs}"
}
module "clients-nyc3" {
source = "./client"
region = "nyc3"
count = 1
image = "${var.image}"
servers = "${module.servers.addrs}"
}
module "clients-sfo1" {
source = "./client"
region = "sfo1"
count = 1
image = "${var.image}"
servers = "${module.servers.addrs}"
}