-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
69 lines (60 loc) · 1.57 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
# Google Project Name
variable "project" {
default = "innovation-day-nomad"
}
# Google Project Region
variable "region" {
default = "europe-west1-d"
}
# Comma separated list of Google Availability Zones that may be used to create
# instances or instance groups.
# Will be used on a round robin basis.
variable "zones" {
default = "europe-west1-b,europe-west1-c,europe-west1-d"
}
# Google DNS Zone resource name and corresponding domain name to use to
# register the external IP addresses of static hosts in the cluster.
# The full DNS name will be <host-name>.<stack-name>.<domain>.
# E.g. nomad-01.bbakker.gce.nauts.io
#
# NB. The Zone resource is not managed by this Terraform setup, only the
# DNS records are.
variable "external_domain" {
default = {
domain = "gce.nauts.io."
zone = "gce-nauts-io"
}
}
# Name of this Stack
variable "stack" {
default = "default"
}
# Public SSH key. This key will be authorized to login to the 'user' account
# on all hosts in the cluster.
variable "ssh_key" {
default = ""
}
# Token for sending logs to Loggly. Leave empty to disable Loggly logging.
variable "loggly_token" {
default = "7a9f9e66-f88d-4bbe-8218-c46edf71389d"
}
# Name of this Stack
variable "network_name" {
default = "nomadnet"
}
variable "nomad_client" {
default = {
"groups" = 2
"min_cluster_size" = 1
"max_cluster_size" = 4
"machine_type" = "f1-micro"
"preemptible_instance" = "true"
"zones" = "europe-west1-d,us-east1-c,asia-east1-a"
}
}
variable "nomad_server" {
default = {
"machine_type" = "f1-micro"
"cluster_size" = 3
}
}