This repository was archived by the owner on Mar 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.pkr.hcl
69 lines (55 loc) · 1.5 KB
/
vars.pkr.hcl
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
# GCP source
variable "gcp_project_id" {
type = string
description = "GCP project ID"
}
variable "gcp_service_account" {
type = string
description = "GCP service account email address"
}
variable "gcp_zone" {
type = string
description = "GCP build zone"
}
variable "gcp_network" {
type = string
description = "GCP network for the builder VM"
}
variable "gcp_subnetwork" {
type = string
description = "GCP subnetwork for the builder VM"
}
# Disk mount provisioning
variable "system_mounts_data_device" {
type = string
description = "Device path of data disk for persisting Docker volumes"
default = "/dev/disk/by-id/google-data"
}
variable "system_mounts_data_mount" {
type = string
description = "Mount path of data disk for persisting Docker volumes"
default = "/mnt/disks/data"
}
# Hashistack provisioning
variable "hashistack_nomad_datacenter" {
type = string
description = "Identifier for the datacenter in which the Hashistack agent runs"
}
variable "hashistack_expected_cluster_size" {
type = number
description = "Number of expected servers in the cluster for bootstrapping"
}
variable "hashistack_nomad_bootstrap_token" {
type = string
description = "Secret ID for ACL bootstrap token"
sensitive = true
}
variable "hashistack_nomad_role" {
type = string
description = "Orchestration role (either orchestrator or worker)"
}
variable "hashistack_nomad_join_server" {
type = string
description = "Address of Nomad server to auto-join"
default = "127.0.0.1"
}