-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
87 lines (70 loc) · 1.74 KB
/
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
## Digital Ocean credentials
variable "do_token" {
description = "Your DigitalOcean API key"
}
## Digital Ocean settings
variable "do_region" {
description = "DigitalOcean Region"
default = "fra1"
}
variable "do_image" {
# Change to actual image slug when Docker 1.13 available
description = "Snapshot ID"
# Specify using:
# export TF_VAR_do_image=[...]
default = ""
}
variable "do_agent_size" {
description = "Agent Droplet Size"
default = "2GB"
}
variable "do_ssh_key_public" {
description = "Path to the SSH public key"
default = "./do-key.pub"
}
variable "do_ssh_key_private" {
description = "Path to the SSH private key"
default = "./do-key"
}
variable "do_user" {
description = "User to use to connect the machine using SSH. Depends on the image being installed."
default = "root"
}
## Domain
variable "dns_domain" {
description = "Name of the DNS domain for the swarm"
default = "nemerosa.net"
}
variable "dns_domain_names" {
type = "list"
description = "Names to register"
default = [
"swarm.ci",
"jenkins.ci",
"ontrack.ci",
"influxdb.ci",
"grafana.ci"
]
}
## Swarm setup
variable "swarm_tags" {
type = "list"
description = "List of tags to associate to all nodes in the cluster"
default = [ "application:swarm" ]
}
variable "swarm_token_dir" {
description = "Path (on the remote machine) which contains the generated swarm tokens"
default = "/root"
}
variable "swarm_name" {
description = "Name of the cluster, used also for networking"
default = "swarm"
}
variable "swarm_master_count" {
description = "Number of additional master nodes (at least one is created)."
default = "0"
}
variable "swarm_agent_count" {
description = "Number of agents to deploy"
default = "2"
}