demo/digitalocean: 500x 1gb droplets per region
This commit is contained in:
parent
709c65879c
commit
2cd15c3c0f
|
@ -1,7 +1,7 @@
|
|||
variable "count" {}
|
||||
variable "image" {}
|
||||
variable "region" {}
|
||||
variable "size" { default = "512mb" }
|
||||
variable "size" { default = "1gb" }
|
||||
variable "servers" {}
|
||||
variable "ssh_keys" {}
|
||||
|
||||
|
|
|
@ -16,17 +16,16 @@ module "servers" {
|
|||
module "clients-nyc3" {
|
||||
source = "./client"
|
||||
region = "nyc3"
|
||||
count = 1
|
||||
count = 500
|
||||
image = "${atlas_artifact.nomad-digitalocean.id}"
|
||||
servers = "${module.servers.addrs}"
|
||||
ssh_keys = "${var.ssh_keys}"
|
||||
}
|
||||
|
||||
/*
|
||||
module "clients-ams2" {
|
||||
source = "./client"
|
||||
region = "ams2"
|
||||
count = 1
|
||||
count = 500
|
||||
image = "${atlas_artifact.nomad-digitalocean.id}"
|
||||
servers = "${module.servers.addrs}"
|
||||
ssh_keys = "${var.ssh_keys}"
|
||||
|
@ -35,7 +34,7 @@ module "clients-ams2" {
|
|||
module "clients-ams3" {
|
||||
source = "./client"
|
||||
region = "ams3"
|
||||
count = 1
|
||||
count = 500
|
||||
image = "${atlas_artifact.nomad-digitalocean.id}"
|
||||
servers = "${module.servers.addrs}"
|
||||
ssh_keys = "${var.ssh_keys}"
|
||||
|
@ -44,12 +43,11 @@ module "clients-ams3" {
|
|||
module "clients-sfo1" {
|
||||
source = "./client"
|
||||
region = "sfo1"
|
||||
count = 1
|
||||
count = 500
|
||||
image = "${atlas_artifact.nomad-digitalocean.id}"
|
||||
servers = "${module.servers.addrs}"
|
||||
ssh_keys = "${var.ssh_keys}"
|
||||
}
|
||||
*/
|
||||
|
||||
output "cluster-info" {
|
||||
value = "Nomad Servers: ${join(" ", split(",", module.servers.addrs))}"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
variable "image" {}
|
||||
variable "region" {}
|
||||
variable "size" { default = "512mb" }
|
||||
variable "size" { default = "1gb" }
|
||||
variable "ssh_keys" {}
|
||||
|
||||
resource "digitalocean_droplet" "server" {
|
||||
|
|
Loading…
Reference in New Issue