-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
137 lines (117 loc) · 2.76 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
###############
# AWS variables
###############
# Region
variable "region" {
default = "us-east-1"
}
variable "bldr_server_instance_type" {
default = "t3.medium"
}
variable "chef_server_instance_type" {
default = "t3.medium"
}
variable "a2_server_instance_type" {
default = "t3.medium"
}
# Key Name - The name of your key at AWS.
variable "key_name" {}
# Instance Key - The local copy of your key file.
variable "instance_key" {
default = "~/.ssh/id_rsa"
}
# Define Common Tags and put them in a map
variable "tag_application" {}
variable "tag_contact" {}
variable "tag_customer" {}
variable "tag_dept" {}
variable "tag_production" {}
variable "tag_project" {}
variable "tag_sleep" {}
variable "tag_ttl" {}
locals {
common_tags = "${map(
"X-Application", "${var.tag_application}",
"X-Contact", "${var.tag_contact}",
"X-Customer", "${var.tag_customer}",
"X-Dept", "${var.tag_dept}",
"X-Production", "${var.tag_production}",
"X-Project", "${var.tag_project}",
"X-Sleep", "${var.tag_sleep}",
"X-TTL", "${var.tag_ttl}",
)}"
}
# DNS Domain Name
variable "domain" {
default = "quickbad.com"
}
#####################
# END - AWS variables
#####################
# Define Chef User variables and put them in a map
variable "email" {
default = "[email protected]"
}
variable "first_name" {
default = "Chef"
}
variable "last_name" {
default = "Admin"
}
variable "username" {
default = "chef_admin"
}
locals {
chef_user = "${map(
"email", "${var.email}",
"first_name", "${var.first_name}",
"last_name", "${var.last_name}",
"username", "${var.username}",
)}"
}
# Harvest created user's key file - Set this to true to auto harvest the key.
variable "harvest_key" {
default = false
}
# Directory where the harvested key will be placed
variable "local_keys_directory" {
default = "~/.chef/keys"
}
# Update the knife-override.rb file. See README.md for explanation.
variable "update_knife_override" {
default = false
}
# A2 License
# Note - Do not change this default value of "none" as that value is used to
# determine wether or not to attempt to apply a license. If you have a
# valid license, put that in your tfvars file.
variable "a2_license" {
default = "none"
}
# A2 Admin Password
variable "a2_admin_password" {
default = "workstation!"
}
# Bldr Server - Set this to true if you would like to integrate a Bldr Server
variable "provision_bldr" {
default = false
}
##############
# Sample nodes
##############
# Centos Sample nodes
variable "centos_sample_node_count" {
default = 0
}
# RHEL Sample nodes
variable "rhel_sample_node_count" {
default = 0
}
# SLES Sample nodes
variable "sles_sample_node_count" {
default = 0
}
# Ubuntu Sample nodes
variable "ubuntu_sample_node_count" {
default = 0
}