-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefine_vars.tf
108 lines (65 loc) · 1.8 KB
/
define_vars.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
#################################################
# Define variables to pass #
# Set variables in set.tfvars file #
#################################################
#EC2 specific configuration
variable "baseAMI" {
type = string
description = "AMI ID with preinstalled docker, docker-compose and pre-activated DSA"
}
variable "instanceType" {
type = string
description = "Set the instance type you would like to run."
default = "t2.micro"
}
variable "rootVolumeSize" {
type = number
description = "How big your root volume should be. From terraform docs: Size of the volume in gibibytes (GiB)."
default = 10
}
# Provider-specific configuration
variable "awsRegion" {
type = string
description = "region where to deploy EC2 instance"
}
# Route 53 configurations
variable "zoneID" {
type = string
description = "domains zone ID"
}
variable "nodeBaseName" {
type = string
description = "Name of the node in Route 53 DNS"
}
# Seafile specific configuration
variable "nodeAdmin" {
type = string
description = "Administrators email for Seafile instance"
default = "me@example.com"
}
variable "nodePassword" {
type = string
description = "Seafile admin password"
default = "SuperSecure123"
}
variable "databasePassword" {
type = string
description = "Seafile DB password"
default = "YetAnotherSuperSecret123Password"
}
# Other variables
variable "nodeCount" {
type = number
description = "Number of nodes to deploy"
default = 1
}
variable "publicKeyLocation" {
type = string
description = "Path to public key for Ansible to connect to EC2"
default = "~/.ssh/id_rsa.pub"
}
variable "privateKeyLocation" {
type = string
description = "Path to public key for Ansible to connect to EC2"
default = "~/.ssh/id_rsa"
}