forked from nextrevision/terraform-rancher-ha-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
101 lines (83 loc) · 2.34 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#------------------------------------------#
# AWS Environment Variables
#------------------------------------------#
variable "region" {
default = "us-east-1"
description = "The region of AWS, for AMI lookups"
}
variable "count" {
default = "3"
description = "Number of HA servers to deploy"
}
variable "name_prefix" {
default = "rancher-ha"
description = "Prefix for all AWS resource names"
}
variable "ami" {
default = "ami-dfdff3c8"
description = "Instance AMI ID"
}
variable "key_name" {
description = "SSH key name in your AWS account for AWS instances"
}
variable "instance_type" {
default = "t2.large" # RAM Requirements >= 8gb
description = "AWS Instance type"
}
variable "root_volume_size" {
default = "16"
description = "Size in GB of the root volume for instances"
}
variable "vpc_cidr" {
default = "192.168.199.0/24"
description = "Subnet in CIDR format to assign to VPC"
}
variable "subnet_cidrs" {
default = ["192.168.199.0/26", "192.168.199.64/26", "192.168.199.128/26"]
description = "Subnet ranges (requires 3 entries)"
}
variable "availability_zones" {
default = ["us-east-1a", "us-east-1b", "us-east-1d"]
description = "Availability zones to place subnets"
}
variable "internal_elb" {
default = "false"
description = "Force the ELB to be internal only"
}
#------------------------------------------#
# Database Variables
#------------------------------------------#
variable "db_name" {
default = "rancher"
description = "Name of the RDS DB"
}
variable "db_user" {
default = "rancher"
description = "Username used to connect to the RDS database"
}
variable "db_pass" {
description = "Password used to connect to the RDS database"
}
#------------------------------------------#
# SSL Variables
#------------------------------------------#
variable "enable_https" {
default = false
description = "Enable HTTPS termination on the loadbalancer"
}
variable "cert_body" {
default = ""
}
variable "cert_private_key" {
default = ""
}
variable "cert_chain" {
default = ""
}
#------------------------------------------#
# Rancher Variables
#------------------------------------------#
variable "rancher_version" {
default = "stable"
description = "Rancher version to deploy"
}