-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.tf
23 lines (22 loc) · 991 Bytes
/
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
# Currently only configurable within the coder instance / provisioner
# cloudnative.coop project under CNCF Account
# https://console.equinix.com/projects/f4a7273d-b1fc-4c50-93e8-7fed753c86ff
variable "metal_project" {
type = string
description = "Project from https://deploy.equinix.com/developers/docs/metal/accounts/projects/"
default = "0c218738-18c0-47b5-a404-beb59d9c6585"
}
variable "domain" {
type = string
description = "Power DNS Domain to create iiboxes in"
default = "cloudnative.nz"
}
locals {
dns_zone = "${lower(data.coder_workspace.ii.name)}-${lower(data.coder_workspace.ii.owner)}.${var.domain}"
dns_fqdn = "${local.dns_zone}." #adds a "." to the end
metal_ip = equinix_metal_device.iibox.access_public_ipv4
iibox_agent_init = coder_agent.iibox.init_script
iibox_agent_token = coder_agent.iibox.token
iipod_agent_init = coder_agent.iipod.init_script
iipod_agent_token = coder_agent.iipod.token
}