2015-06-01 05:26:50 +00:00
|
|
|
variable "platform" {
|
2016-12-22 13:26:24 +00:00
|
|
|
default = "ubuntu"
|
|
|
|
description = "The OS Platform"
|
2015-06-01 05:26:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "user" {
|
2016-12-22 13:26:24 +00:00
|
|
|
default = {
|
|
|
|
ubuntu = "ubuntu"
|
|
|
|
rhel6 = "ec2-user"
|
|
|
|
centos6 = "centos"
|
|
|
|
centos7 = "centos"
|
|
|
|
rhel7 = "ec2-user"
|
|
|
|
}
|
2015-06-01 05:26:50 +00:00
|
|
|
}
|
|
|
|
|
2014-10-12 00:09:51 +00:00
|
|
|
variable "ami" {
|
2016-12-22 13:26:24 +00:00
|
|
|
description = "AWS AMI Id, if you change, make sure it is compatible with instance type, not all AMIs allow all instance types "
|
|
|
|
|
|
|
|
default = {
|
|
|
|
us-east-1-ubuntu = "ami-fce3c696"
|
|
|
|
us-east-2-ubuntu = "ami-b7075dd2"
|
|
|
|
us-west-1-ubuntu = "ami-a9a8e4c9"
|
|
|
|
us-west-2-ubuntu = "ami-9abea4fb"
|
|
|
|
eu-west-1-ubuntu = "ami-47a23a30"
|
|
|
|
eu-central-1-ubuntu = "ami-accff2b1"
|
|
|
|
ap-northeast-1-ubuntu = "ami-90815290"
|
|
|
|
ap-southeast-1-ubuntu = "ami-0accf458"
|
|
|
|
ap-southeast-2-ubuntu = "ami-1dc8b127"
|
|
|
|
us-east-1-rhel6 = "ami-0d28fe66"
|
|
|
|
us-east-2-rhel6 = "ami-aff2a9ca"
|
|
|
|
us-west-2-rhel6 = "ami-3d3c0a0d"
|
|
|
|
us-east-1-centos6 = "ami-57cd8732"
|
|
|
|
us-east-2-centos6 = "ami-c299c2a7"
|
|
|
|
us-west-2-centos6 = "ami-1255b321"
|
|
|
|
us-east-1-rhel7 = "ami-2051294a"
|
|
|
|
us-east-2-rhel7 = "ami-0a33696f"
|
|
|
|
us-west-2-rhel7 = "ami-775e4f16"
|
|
|
|
us-east-1-centos7 = "ami-6d1c2007"
|
|
|
|
us-east-2-centos7 = "ami-6a2d760f"
|
|
|
|
us-west-1-centos7 = "ami-af4333cf"
|
|
|
|
}
|
2014-10-12 00:09:51 +00:00
|
|
|
}
|
|
|
|
|
2016-01-19 01:12:48 +00:00
|
|
|
variable "service_conf" {
|
|
|
|
default = {
|
|
|
|
ubuntu = "debian_upstart.conf"
|
|
|
|
rhel6 = "rhel_upstart.conf"
|
|
|
|
centos6 = "rhel_upstart.conf"
|
2016-04-21 22:32:30 +00:00
|
|
|
centos7 = "rhel_consul.service"
|
2016-01-19 01:12:48 +00:00
|
|
|
rhel7 = "rhel_consul.service"
|
|
|
|
}
|
|
|
|
}
|
2016-12-22 13:26:24 +00:00
|
|
|
|
2016-01-19 01:12:48 +00:00
|
|
|
variable "service_conf_dest" {
|
|
|
|
default = {
|
|
|
|
ubuntu = "upstart.conf"
|
|
|
|
rhel6 = "upstart.conf"
|
|
|
|
centos6 = "upstart.conf"
|
2016-04-21 22:32:30 +00:00
|
|
|
centos7 = "consul.service"
|
2016-01-19 01:12:48 +00:00
|
|
|
rhel7 = "consul.service"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-12 00:09:51 +00:00
|
|
|
variable "key_name" {
|
2016-12-22 13:26:24 +00:00
|
|
|
description = "SSH key name in your AWS account for AWS instances."
|
2014-10-12 00:09:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "key_path" {
|
2016-12-22 13:26:24 +00:00
|
|
|
description = "Path to the private key specified by key_name."
|
2014-10-12 00:09:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "region" {
|
2016-12-22 13:26:24 +00:00
|
|
|
default = "us-east-1"
|
|
|
|
description = "The region of AWS, for AMI lookups."
|
2014-10-12 00:09:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "servers" {
|
2016-12-22 13:26:24 +00:00
|
|
|
default = "3"
|
|
|
|
description = "The number of Consul servers to launch."
|
2014-10-12 00:09:51 +00:00
|
|
|
}
|
2015-03-14 18:00:22 +00:00
|
|
|
|
|
|
|
variable "instance_type" {
|
2016-12-22 13:26:24 +00:00
|
|
|
default = "t2.micro"
|
|
|
|
description = "AWS Instance type, if you change, make sure it is compatible with AMI, not all AMIs allow all instance types "
|
2015-05-09 20:50:11 +00:00
|
|
|
}
|
2015-05-31 18:00:57 +00:00
|
|
|
|
2015-05-09 20:50:11 +00:00
|
|
|
variable "tagName" {
|
2016-12-22 13:26:24 +00:00
|
|
|
default = "consul"
|
|
|
|
description = "Name tag for the servers"
|
2015-05-31 18:00:57 +00:00
|
|
|
}
|