2015-05-11 22:50:00 +00:00
|
|
|
//-------------------------------------------------------------------
|
|
|
|
// Vault settings
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
|
|
|
|
variable "download-url" {
|
|
|
|
default = "https://dl.bintray.com/mitchellh/vault/vault_0.1.2_linux_amd64.zip"
|
|
|
|
description = "URL to download Vault"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "config" {
|
|
|
|
description = "Configuration (text) for Vault"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "extra-install" {
|
|
|
|
default = ""
|
|
|
|
description = "Extra commands to run in the install script"
|
|
|
|
}
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
// AWS settings
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
|
|
|
|
variable "ami" {
|
2015-05-11 23:19:29 +00:00
|
|
|
default = "ami-7eb2a716"
|
2015-05-11 22:50:00 +00:00
|
|
|
description = "AMI for Vault instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "availability-zones" {
|
|
|
|
default = "us-east-1a,us-east-1b"
|
|
|
|
description = "Availabilizy zones for launcing the Vault instances"
|
|
|
|
}
|
|
|
|
|
2015-05-11 23:19:29 +00:00
|
|
|
variable "elb-health-check" {
|
|
|
|
default = "HTTP:8200/v1/sys/health"
|
|
|
|
description = "Health check for Vault servers"
|
|
|
|
}
|
|
|
|
|
2015-05-11 22:50:00 +00:00
|
|
|
variable "instance_type" {
|
|
|
|
default = "m3.medium"
|
|
|
|
description = "Instance type for Vault instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "key-name" {
|
|
|
|
default = "default"
|
|
|
|
description = "SSH key name for Vault instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nodes" {
|
|
|
|
default = "2"
|
|
|
|
description = "number of Vault instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "subnets" {
|
|
|
|
description = "list of subnets to launch Vault within"
|
|
|
|
}
|
2015-05-11 23:26:25 +00:00
|
|
|
|
|
|
|
variable "vpc-id" {
|
|
|
|
description = "VPC ID"
|
|
|
|
}
|