-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmain.tf
44 lines (40 loc) · 1.49 KB
/
main.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
# Rancher server details
variable "server_security_group_id" {
description = "Security group id of the Rancher server so we can restrict incoming traffic."
}
variable "server_hostname" {
description = "Hostname of the Rancher server."
}
# Target server environment
variable "environment_id" {
description = "Target environment id for host registration."
}
variable "environment_access_key" {
description = "API access key for target environment"
}
variable "environment_secret_key" {
description = "API secret key for target environment"
}
# Cluster setup
variable "cluster_name" {
description = "The name of the cluster. Best not to include non-alphanumeric characters. Will be used to name resources and tag instances."
}
variable "cluster_autoscaling_group_name" {
description = "Name of the target autoscaling group."
}
variable "cluster_instance_security_group_id" {
description = "ID of the security group used for host instances. Will be modified to include rancher specific rules."
}
variable "cluster_instance_labels" {
description = "Additional labels to attach to host instances. Should be in the format: key=value&key2=value2"
default = ""
}
# Docker options
variable "docker_daemon_options" {
description = "Docker daemon options to write to the docker config file before startup."
default = ""
}
# Lifecycle hooks queue arn
variable "lifecycle_hooks_sqs_queue_arn" {
description = "ARN of the SQS queue used to receive autoscaling lifecycle hooks."
}