-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
131 lines (109 loc) · 3.21 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
variable "droplet_user" {
description = "Name for creating a new user on the server (must be unique)"
type = string
}
variable "droplet_name" {
description = "The name of the droplet (must be unique)"
type = string
}
variable "droplet_image" {
description = "The image of the droplet (must be available in the region). Default: ubuntu-1vcpu-512mb.rev1"
type = string
default = "ubuntu-1vcpu-512mb.rev1"
}
variable "droplet_region" {
description = "The region of the droplet (must be available)"
type = string
default = "ams3"
}
variable "droplet_size" {
description = "The size of the droplet (must be available in the region)"
type = string
default = "s-1vcpu-512mb-10gb"
}
variable "droplet_tags" {
description = "The tags of the droplet (for firewall rules)"
type = list(any)
}
variable "droplet_project" {
description = "The target project for the droplet"
type = string
}
variable "droplet_reserved_ip" {
description = "Link a reserved address to a droplet"
type = bool
default = false
}
variable "droplet_dns_record" {
description = "Create an external dns record for this droplet in `droplet_dns_zone`"
type = bool
default = true
}
variable "droplet_dns_zone" {
description = "Name of the domain zone to create an external dns record for this droplet"
type = string
}
variable "droplet_volume_size" {
description = "Additional volume size (if required)"
type = number
default = 0
}
variable "droplet_backups" {
description = "Enable backups for droplet"
type = bool
default = false
}
variable "droplet_do_monitoring" {
description = "Enable monitoring for droplet (for graphs and alerts)"
type = bool
default = true
}
variable "droplet_provisioner_ssh_key" {
description = "Private key for provisioner connection to droplet (must be base64 encoded)"
type = string
}
variable "droplet_do_agent" {
description = "Enable DigitalOcean agent for droplet (for monitoring and backups)"
type = bool
default = true
}
variable "os_packages" {
description = "List of packages to install"
type = list(string)
default = []
}
variable "os_commands" {
description = "List of commands to execute custom remote-exec"
type = list(string)
default = null
}
variable "os_environment_variables" {
description = "List with environmetn variables for server"
type = list(any)
default = []
}
variable "os_swap_size" {
description = "Size of swap in GB"
type = number
default = 0
}
variable "os_hosts" {
description = "List with /etc/hosts"
type = list(string)
default = []
}
variable "app_data" {
description = "The path to the directory for storing persistent information and configurations"
type = string
default = "/opt"
}
variable "app_configurations" {
description = "The path to the directories with configurations that will be copied to the created server"
type = string
default = "configurations/"
}
variable "app_cname_records" {
description = "List with CNAME records for droplet"
type = list(string)
default = []
}