demo/digitalocean: var for image id

This commit is contained in:
Ryan Uber 2015-09-23 14:18:42 -07:00
parent b1800a0841
commit 9a04b8eff9
1 changed files with 7 additions and 0 deletions

View File

@ -1,13 +1,17 @@
variable "image" { default = "xxx" }
module "servers" {
source = "./server"
region = "nyc3"
count = 3
image = "${var.image}"
}
module "clients-ams2" {
source = "./client"
region = "ams2"
count = 500
image = "${var.image}"
servers = "${module.servers.addrs}"
}
@ -15,6 +19,7 @@ module "clients-ams3" {
source = "./client"
region = "ams3"
count = 500
image = "${var.image}"
servers = "${module.servers.addrs}"
}
@ -22,6 +27,7 @@ module "clients-nyc3" {
source = "./client"
region = "nyc3"
count = 500
image = "${var.image}"
servers = "${module.servers.addrs}"
}
@ -29,5 +35,6 @@ module "clients-sfo1" {
source = "./client"
region = "sfo1"
count = 500
image = "${var.image}"
servers = "${module.servers.addrs}"
}