generated from brucellino/tfmod-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
64 lines (56 loc) · 1.54 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
# consul-digitalocean variables.tf
variable "servers" {
type = number
default = 3
description = "number of server instances"
# validation = must be prime number less than 7
}
variable "agents" {
type = number
default = 7
description = "number of agent instances"
# validation = must be > 0
}
variable "project_name" {
type = string
default = "hashi"
description = "Name of the project in digitalocean"
}
variable "vpc_name" {
type = string
default = "hashi"
description = "Name of the VPC we are deploying into"
}
variable "ssh_inbound_source_cidrs" {
type = list(any)
description = "List of CIDRs from which we will allow ssh connections on port 22"
default = []
# validation = must not be 0.0.0.0/0
}
variable "ssh_public_key_url" {
type = string
description = "URL of of the public ssh key to add to the droplet"
default = "https://github.com/brucellino.keys"
# Pre-condition in data.
}
variable "droplet_size" {
type = string
description = "Size of the droplet for Vault instances"
default = "s-1vcpu-1gb"
# validation = must be in digitalocean droplet sizes
}
variable "username" {
type = string
description = "Name of the non-root user to add"
default = "hashiuser"
}
variable "consul_version" {
description = "Version of Consul to deploy"
type = string
default = "1.15.1"
}
variable "datacenter" {
type = string
description = "Name of the Consul datacenter"
default = "HashiDO"
}