-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoutputs.tf
51 lines (45 loc) · 2.02 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# ------------------------------------------------------------------------------
# Trivadis - Part of Accenture, Platform Factory - Data Platforms
# Saegereistrasse 29, 8152 Glattbrugg, Switzerland
# ------------------------------------------------------------------------------
# Name.......: outputs.tf
# Author.....: Stefan Oehrli (oes) [email protected]
# Editor.....: Stefan Oehrli
# Date.......: 2023.04.19
# Revision...:
# Purpose....: Output for the terraform module tvdlab bastion.
# Notes......: --
# Reference..: --
# License....: Apache License Version 2.0, January 2004 as shown
# at http://www.apache.org/licenses/
# ------------------------------------------------------------------------------
# display public IPs jumphost
output "bastion_id" {
description = "OCID of the bastion server instances."
value = oci_core_instance.bastion[*].id
}
output "bastion_hostname" {
description = "The hostname for VNIC's primary private IP of the bastion server instances."
value = oci_core_instance.bastion[*].hostname_label
}
output "bastion_public_ip" {
description = "The public IP address of the bastion server instances."
value = oci_core_instance.bastion[*].public_ip
}
output "bastion_private_ip" {
description = "The private IP address of the bastion server instances."
value = oci_core_instance.bastion[*].private_ip
}
output "bastion_dns_records" {
description = "The DNS records for the bastion server instances."
value = [oci_dns_rrset.bastion[*].items]
}
output "bastion_ssh_access" {
description = "SSH access string for bastion hosts with specific port"
value = formatlist("ssh -A -p ${var.inbound_ssh_port} opc@%s.${var.lab_domain}", oci_core_instance.bastion[*].hostname_label)
}
output "bastion_public_url" {
description = "Bastion Apache Guacammole URL."
value = formatlist("http://%s.${var.lab_domain}/guacamole", oci_core_instance.bastion[*].hostname_label)
}
# --- EOF ----------------------------------------------------------------------