forked from equinix-labs/terraform-metal-vyos-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
34 lines (28 loc) · 1.08 KB
/
outputs.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
output "SSH" {
value = "ssh vyos@${packet_device.router.network.0.address}"
description = "Command to SSH into the VyOS Router"
}
output "Out_of_Band_Console" {
value = "ssh ${packet_device.router.id}@sos.${lower(var.facility)}.packet.net"
description = "Command to SSH into the Serial over Lan Console of the VyOS Router"
}
output "VyOS_Config_File" {
value = "${path.module}/vyos.conf"
description = "The Name of the VyOS config file"
}
output "BGP_Password" {
value = random_string.bgp_password.result
description = "The BGP password for peering"
}
# output "IPSec_Pre_Shared_Key" {
# value = random_string.ipsec_psk.result
# description = "IPSec pre shared key for authentication."
# }
# output "IPSec_Public_IP" {
# value = packet_device.router.network.0.address
# description = "Public IP for IPSec VPN"
# }
# output "IPSec_Private_IP_CIDR" {
# value = format("%s/%s", cidrhost(var.ipsec_private_cidr, 2), split("/", var.ipsec_private_cidr)[1])
# description = "Private IP space inside the ipsec tunnel to do BGP peering."
# }