-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.tf
49 lines (40 loc) · 1.35 KB
/
output.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
output "address" {
description = "The actual IPv4 address managed"
value = qip_v4address.address.address
}
output "network_mask" {
description = "Network mask for the address (e.g. 255.255.255.0)"
value = data.qip_v4subnet.net.mask
}
output "prefix_length" {
description = "CIDR prefix length (e.g. 24)"
value = data.qip_v4subnet.net.prefix_length
}
output "address_cidr" {
description = "Address in CIDR notation including the prefix length (e.g. 192.0.2.11/24)"
value = "${qip_v4address.address.address}/${data.qip_v4subnet.net.prefix_length}"
}
output "gateway" {
description = "Default gateway for the subnet"
value = local.subnet_gateway
}
output "domain" {
description = "Local domain assigned to the subnet"
value = local.subnet_domain
}
output "fqdn" {
description = "FQDN (full qualified domain name) for the address"
value = "${var.name}.${local.subnet_domain}"
}
output "domains" {
description = "All domains assigned to the subnet for lookups"
value = local.subnet_domains
}
output "dns_servers" {
description = "IP addresses of all DNS servers assigned to the subnet"
value = local.subnet_dns_servers
}
output "ntp_servers" {
description = "IP addresses of all NTP servers assigned to the subnet. Defaults to the DNS servers"
value = local.subnet_ntp_servers
}