-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
61 lines (50 loc) · 1.74 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
# Linode Specific Variables
variable "linode_access_token" {
type = string
description = "This is the Linode access token to create resources in Linode."
}
variable "linode_ssh_root_password" {
type = string
description = "This value is what gets assigned as your ssh password to remote into the Linode instances."
}
# Rancher Specific Variables within Linode
variable "rancher_bootstrap_password" {
type = string
description = "This is the bootstrap password that gets assigned to login to the Rancher UI."
}
variable "dockerhub" {
type = string
description = "The dockerhub repository where the image is pulled from."
default = "rancher/rancher"
}
# AWS Specific Variables
variable "aws_access_key" {
type = string
description = "This is the AWS access key."
}
variable "aws_secret_key" {
type = string
description = "This is the AWS secret key."
}
variable "aws_route53_fqdn" {
type = string
description = "This should be the most used fully qualified domain name in the hosted zone in AWS Route 53."
}
variable "linode_tags" {
type = list(any)
description = "Tags to add to the Linode instance."
}
variable "label_prefix" {
type = string
description = "The value added to the random pet name to associate it with yourelf. Shoud be maximum 3 characters for your initials."
validation {
condition = length(var.label_prefix) <= 3
error_message = "The label prefix should not be any longer than 3 characters for your initials."
}
}
variable "rancher_instances" {
type = list(object({
rancher_version : string,
}))
description = "Rancher instances is a list/array of objects. Each object creates a Linode instance and AWS Route53 record."
}