demo/digitalocean: 500x 1gb droplets per region

This commit is contained in:
Ryan Uber 2015-09-24 11:44:51 -07:00
parent 709c65879c
commit 2cd15c3c0f
3 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,7 @@
variable "count" {}
variable "image" {}
variable "region" {}
variable "size" { default = "512mb" }
variable "size" { default = "1gb" }
variable "servers" {}
variable "ssh_keys" {}

View File

@ -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))}"

View File

@ -1,6 +1,6 @@
variable "image" {}
variable "region" {}
variable "size" { default = "512mb" }
variable "size" { default = "1gb" }
variable "ssh_keys" {}
resource "digitalocean_droplet" "server" {