-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
168 lines (167 loc) · 5.12 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
#
# AWS provider specific configs
#
variable "aws_access_key" {
description = "Your AWS key (ex. $AWS_ACCESS_KEY_ID)"
}
variable "aws_flavor" {
description = "AWS Instance type to deploy"
default = "c3.xlarge"
}
variable "aws_key_name" {
description = "Name of the key pair uploaded to AWS"
}
variable "aws_private_key_file" {
description = "Full path to your local private key"
}
variable "aws_region" {
description = "AWS Region to deploy to"
default = "us-west-1"
}
variable "aws_secret_key" {
description = "Your AWS secret (ex. $AWS_SECRET_ACCESS_KEY)"
}
variable "aws_subnet_id" {
description = "AWS Subnet id (ex. subnet-ffffffff)"
}
variable "aws_vpc_id" {
description = "AWS VPC id (ex. vpc-ffffffff)"
}
#
# AMI mapping
#
variable "ami_map" {
description = "AMI map of OS/region (2016-03-14)"
default = {
centos7-us-east-1 = "ami-6d1c2007"
centos7-us-west-2 = "ami-d2c924b2"
centos7-us-west-1 = "ami-af4333cf"
centos7-eu-central-1 = "ami-9bf712f4"
centos7-eu-west-1 = "ami-7abd0209"
centos7-ap-southeast-1 = "ami-f068a193"
centos7-ap-southeast-2 = "ami-fedafc9d"
centos7-ap-northeast-1 = "ami-eec1c380"
centos7-ap-northeast-2 = "ami-c74789a9"
centos7-sa-east-1 = "ami-26b93b4a"
centos6-us-east-1 = "ami-1c221e76"
centos6-us-west-2 = "ami-05cf2265"
centos6-us-west-1 = "ami-ac5f2fcc"
centos6-eu-central-1 = "ami-2bf11444"
centos6-eu-west-1 = "ami-edb9069e"
centos6-ap-southeast-1 = "ami-106aa373"
centos6-ap-southeast-2 = "ami-87d2f4e4"
centos6-ap-northeast-1 = "ami-fa3d3f94"
centos6-ap-northeast-2 = "ami-56478938"
centos6-sa-east-1 = "ami-03b93b6f"
ubuntu16-us-east-1 = "-1"
ubuntu16-us-west-2 = "-1"
ubuntu16-us-west-1 = "-1"
ubuntu16-eu-central-1 = "-1"
ubuntu16-eu-west-1 = "-1"
ubuntu16-ap-southeast-1 = "-1"
ubuntu16-ap-southeast-2 = "-1"
ubuntu16-ap-northeast-1 = "-1"
ubuntu16-ap-northeast-2 = "-1"
ubuntu16-sa-east-1 = "-1"
ubuntu14-us-east-1 = "ami-415f6d2b"
ubuntu14-us-west-2 = "ami-3d2cce5d"
ubuntu14-us-west-1 = "ami-1d25557d"
ubuntu14-eu-central-1 = "ami-9b9c86f7"
ubuntu14-eu-west-1 = "ami-abc579d8"
ubuntu14-ap-southeast-1 = "ami-f500c996"
ubuntu14-ap-southeast-2 = "ami-1f30167c"
ubuntu14-ap-northeast-1 = "ami-88686be6"
ubuntu14-ap-northeast-2 = "-1"
ubuntu14-sa-east-1 = "ami-f3e4669f"
ubuntu12-us-east-1 = "ami-88dfdee2"
ubuntu12-us-west-2 = "ami-1a977e7a"
ubuntu12-us-west-1 = "ami-4f285a2f"
ubuntu12-eu-central-1 = "ami-3cf61153"
ubuntu12-eu-west-1 = "ami-65932916"
ubuntu12-ap-southeast-1 = "ami-26e32845"
ubuntu12-ap-southeast-2 = "ami-d54e6eb6"
ubuntu12-ap-northeast-1 = "ami-f2afa79c"
ubuntu12-ap-northeast-2 = "-1"
ubuntu12-sa-east-1 = "ami-2661ec4a"
}
}
variable "ami_os" {
description = "Server OS (options: centos7, [centos6], ubuntu16, ubuntu14)"
default = "centos6"
}
variable "ami_usermap" {
description = "Default username map for AMI selected"
default = {
centos7 = "centos"
centos6 = "centos"
ubuntu16 = "ubuntu"
ubuntu14 = "ubuntu"
ubuntu12 = "ubuntu"
}
}
#
# specific configs
#
variable "accept_license" {
description = "Accept the Chef Compliance license agreement: https://downloads.chef.io/compliance/1.1.9/ubuntu/14.04/license.html"
default = true
}
variable "allowed_cidrs" {
description = "List of CIDRs to allow SSH from (CSV list allowed)"
default = "0.0.0.0/0"
}
variable "chef_fqdn" {
description = "Fully qualified DNS address of the Chef Server"
}
variable "chef_org" {
description = "Chef Server organization short name (lowercase alphanumeric characters only)"
}
variable "chef_org_validator" {
descirption = "Path to validation pem for ${var.chef_org}"
}
variable "client_version" {
description = "Version of the chef-client software to install"
default = "12.8.1"
}
variable "domain" {
description = "Server domain name"
default = "localdomain"
}
variable "hostname" {
description = "Server hostname"
default = "compliance"
}
variable "knife_rb" {
description = "Path to your knife.rb configuration"
default = ".chef/knife.rb"
}
variable "log_to_file" {
description = "Output chef-client runtime to logfiles/"
default = true
}
variable "public_ip" {
description = "Associate a public IP to the instance"
default = true
}
variable "root_delete_termination" {
description = "Delete server root block device on termination"
default = true
}
variable "server_count" {
description = "Number of servers to provision. DO NOT CHANGE!"
default = 1
}
variable "ssl_cert" {
description = "SSL Certificate in PEM format"
}
variable "ssl_key" {
description = "Key for SSL Certificate"
}
variable "tag_description" {
description = "Server AWS description tag text"
default = "Created using Terraform (tf_chef_compliance)"
}
variable "wait_on" {
description = "Variable to hold outputs of other moudles to force waiting"
default = "Nothing"
}