This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
92 lines (78 loc) · 2.02 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
variable "name" {
type = string
description = "The Droplet resource name"
}
variable "resource_count" {
type = number
description = "Number of droplet resources to create"
default = 1
}
variable "resource_count_start" {
type = number
description = "Resource name suffix count.index starting number"
default = 1
}
variable "image" {
type = string
description = "The Droplet ID or slug"
default = "docker-18-04"
}
# https://developers.digitaloceanfcom/documentation/v2/#list-all-sizes
variable "size" {
type = string
description = "The unique slug that indentifies the type of Droplet"
default = "s-1vcpu-1gb"
}
variable "region" {
type = string
description = "The DigitalOcean region to create the droplet in"
default = "nyc3"
}
variable "user_data" {
type = string
description = "A string of the desired User Data for the Droplet"
default = "#!/bin/bash"
}
variable "tags" {
type = list(any)
description = "A list of the tags to be applied to this Droplet"
default = []
}
variable "ssh_keys" {
type = list(any)
description = "A list of SSH IDs or fingerprints to enable in the format [12345, 123456]"
default = []
}
variable "volume_ids" {
type = list(any)
description = "A list of the IDs of each block storage volume to be attached to the Droplet"
default = []
}
variable "backups" {
type = bool
description = "Enable backups"
default = false
}
variable "monitoring" {
type = bool
description = "Enable detailed monitoring"
default = true
}
variable "connection" {
type = map
default = {
agent = false
type = "ssh"
user = "root"
private_key = ""
timeout = "2m"
}
}
variable "on_create" {
description = "List of remote-exec provisioners for the host on creation"
default = []
}
variable "on_destroy" {
description = "List of remote-exec provisioners for the host on destroy"
default = []
}