2015-09-23 23:38:31 +00:00
|
|
|
variable "image" {}
|
|
|
|
variable "ssh_keys" {}
|
2015-09-23 21:18:42 +00:00
|
|
|
|
2015-09-23 21:16:36 +00:00
|
|
|
module "servers" {
|
2015-09-23 23:38:31 +00:00
|
|
|
source = "./server"
|
|
|
|
region = "nyc3"
|
|
|
|
count = 3
|
|
|
|
image = "${var.image}"
|
|
|
|
ssh_keys = "${var.ssh_keys}"
|
2015-09-23 21:16:36 +00:00
|
|
|
}
|
|
|
|
|
2015-09-24 02:02:04 +00:00
|
|
|
module "clients-nyc3" {
|
2015-09-23 23:38:31 +00:00
|
|
|
source = "./client"
|
2015-09-24 02:02:04 +00:00
|
|
|
region = "nyc3"
|
2015-09-23 23:38:31 +00:00
|
|
|
count = 1
|
|
|
|
image = "${var.image}"
|
|
|
|
servers = "${module.servers.addrs}"
|
|
|
|
ssh_keys = "${var.ssh_keys}"
|
2015-09-23 21:16:36 +00:00
|
|
|
}
|
|
|
|
|
2015-09-24 02:02:04 +00:00
|
|
|
/*
|
|
|
|
module "clients-ams2" {
|
2015-09-23 23:38:31 +00:00
|
|
|
source = "./client"
|
2015-09-24 02:02:04 +00:00
|
|
|
region = "ams2"
|
2015-09-23 23:38:31 +00:00
|
|
|
count = 1
|
|
|
|
image = "${var.image}"
|
|
|
|
servers = "${module.servers.addrs}"
|
|
|
|
ssh_keys = "${var.ssh_keys}"
|
2015-09-23 21:16:36 +00:00
|
|
|
}
|
|
|
|
|
2015-09-24 02:02:04 +00:00
|
|
|
module "clients-ams3" {
|
2015-09-23 23:38:31 +00:00
|
|
|
source = "./client"
|
2015-09-24 02:02:04 +00:00
|
|
|
region = "ams3"
|
2015-09-23 23:38:31 +00:00
|
|
|
count = 1
|
|
|
|
image = "${var.image}"
|
|
|
|
servers = "${module.servers.addrs}"
|
|
|
|
ssh_keys = "${var.ssh_keys}"
|
2015-09-23 21:16:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module "clients-sfo1" {
|
2015-09-23 23:38:31 +00:00
|
|
|
source = "./client"
|
|
|
|
region = "sfo1"
|
|
|
|
count = 1
|
|
|
|
image = "${var.image}"
|
|
|
|
servers = "${module.servers.addrs}"
|
|
|
|
ssh_keys = "${var.ssh_keys}"
|
2015-09-23 21:16:36 +00:00
|
|
|
}
|
2015-09-24 02:02:04 +00:00
|
|
|
*/
|