From 9a04b8eff970d26c745ed1222443a8cc2d1c54d7 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Wed, 23 Sep 2015 14:18:42 -0700 Subject: [PATCH] demo/digitalocean: var for image id --- demo/digitalocean/terraform/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/demo/digitalocean/terraform/main.tf b/demo/digitalocean/terraform/main.tf index c0245a034..0fba15a19 100644 --- a/demo/digitalocean/terraform/main.tf +++ b/demo/digitalocean/terraform/main.tf @@ -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}" }