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 "count" {}
variable "image" {} variable "image" {}
variable "region" {} variable "region" {}
variable "size" { default = "512mb" } variable "size" { default = "1gb" }
variable "servers" {} variable "servers" {}
variable "ssh_keys" {} variable "ssh_keys" {}

View File

@ -16,17 +16,16 @@ module "servers" {
module "clients-nyc3" { module "clients-nyc3" {
source = "./client" source = "./client"
region = "nyc3" region = "nyc3"
count = 1 count = 500
image = "${atlas_artifact.nomad-digitalocean.id}" image = "${atlas_artifact.nomad-digitalocean.id}"
servers = "${module.servers.addrs}" servers = "${module.servers.addrs}"
ssh_keys = "${var.ssh_keys}" ssh_keys = "${var.ssh_keys}"
} }
/*
module "clients-ams2" { module "clients-ams2" {
source = "./client" source = "./client"
region = "ams2" region = "ams2"
count = 1 count = 500
image = "${atlas_artifact.nomad-digitalocean.id}" image = "${atlas_artifact.nomad-digitalocean.id}"
servers = "${module.servers.addrs}" servers = "${module.servers.addrs}"
ssh_keys = "${var.ssh_keys}" ssh_keys = "${var.ssh_keys}"
@ -35,7 +34,7 @@ module "clients-ams2" {
module "clients-ams3" { module "clients-ams3" {
source = "./client" source = "./client"
region = "ams3" region = "ams3"
count = 1 count = 500
image = "${atlas_artifact.nomad-digitalocean.id}" image = "${atlas_artifact.nomad-digitalocean.id}"
servers = "${module.servers.addrs}" servers = "${module.servers.addrs}"
ssh_keys = "${var.ssh_keys}" ssh_keys = "${var.ssh_keys}"
@ -44,12 +43,11 @@ module "clients-ams3" {
module "clients-sfo1" { module "clients-sfo1" {
source = "./client" source = "./client"
region = "sfo1" region = "sfo1"
count = 1 count = 500
image = "${atlas_artifact.nomad-digitalocean.id}" image = "${atlas_artifact.nomad-digitalocean.id}"
servers = "${module.servers.addrs}" servers = "${module.servers.addrs}"
ssh_keys = "${var.ssh_keys}" ssh_keys = "${var.ssh_keys}"
} }
*/
output "cluster-info" { output "cluster-info" {
value = "Nomad Servers: ${join(" ", split(",", module.servers.addrs))}" value = "Nomad Servers: ${join(" ", split(",", module.servers.addrs))}"

View File

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