demo/digitalocean: var for image id
This commit is contained in:
parent
b1800a0841
commit
9a04b8eff9
|
@ -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}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue