forked from gsreynolds/chef_terraform
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
171 lines (142 loc) · 3.3 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
variable "provider" {
type = "map"
description = "AWS provider settings"
default = {
region = ""
profile = ""
}
}
variable "application_name" {
description = "Application name"
default = "Chef Automate"
}
variable "create_chef_ha" {
description = "Create Chef Server in HA topology if true, standalone topology if false"
default = false
}
variable "default_tags" {
type = "map"
description = "Default resource tags"
default = {
X-Production = false
}
}
variable "vpc" {
type = "map"
description = "VPC CIDR block"
default = {
cidr_block = ""
}
}
variable "az_subnets" {
type = "map"
description = "Availability zone subnets"
default = {}
}
variable "ssh_whitelist_cidrs" {
type = "list"
description = "List of CIDRs to allow SSH"
default = ["0.0.0.0/0"]
}
variable "domain" {
description = "Zone domain name"
default = ""
}
variable "ami_user" {
type = "string"
description = "Default username"
default = "ubuntu"
}
variable "instance" {
type = "map"
description = "AWS Instance settings"
default = {
automate_server_flavor = "m5.large"
automate_server_iops = 0
automate_server_public = true
automate_server_size = 40
automate_server_term = true
automate_server_type = "gp2"
backend_flavor = "m5.large"
backend_iops = 0
backend_public = true
backend_size = 40
backend_term = true
backend_type = "gp2"
chef_client_flavor = "t2.medium"
chef_client_iops = 0
chef_client_public = true
chef_client_size = 10
chef_client_term = true
chef_client_type = "gp2"
chef_server_flavor = "m5.large"
chef_server_iops = 0
chef_server_public = true
chef_server_size = 40
chef_server_term = true
chef_server_type = "gp2"
ebs_optimized = true
ebs_optimized = true
frontend_flavor = "m5.large"
frontend_iops = 0
frontend_public = true
frontend_size = 40
frontend_term = true
frontend_type = "gp2"
}
}
variable "hostnames" {
type = "map"
description = "Instance hostname prefix"
default = {
chef_server = "chef"
automate_server = "automate"
chef_client = "node"
}
}
variable "instance_keys" {
type = "map"
description = ""
default = {
key_name = ""
key_file = ""
}
}
variable "r53_ttl" {
type = "string"
description = "DNS record TTLS"
default = "180"
}
variable "validator_key_path" {
type = "string"
description = "Path to org validator key in SSM"
default = "/chef/test/"
}
variable "chef_backend" {
type = "map"
description = "Chef backend settings"
default = {
count = 3
version = "2.0.30"
}
}
variable "chef_frontend" {
type = "map"
description = "Chef frontend settings"
default = {
count = 3
version = "12.19.31"
}
}
variable "chef_clients" {
type = "map"
description = "Chef Client settings"
default = {
count = 0
version = "14.13.11"
}
}
variable "log_bucket" {
description = "Chef HA Log bucket"
default = "chef-ha-logs"
}