Extends Terraform output to also include IPv6 addresses
This commit is contained in:
parent
ebb7d8aa39
commit
3466554980
10
main.tf
10
main.tf
|
@ -82,9 +82,12 @@ resource "hcloud_rdns" "staging-rdns-v6" {
|
|||
}
|
||||
|
||||
# Output Server Public IP address
|
||||
output "server_ip_staging" {
|
||||
output "server_ipv4_staging" {
|
||||
value = "${hcloud_server.staging.ipv4_address}"
|
||||
}
|
||||
output "server_ipv6_staging" {
|
||||
value = "${hcloud_server.staging.ipv6_address}"
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
|
@ -119,6 +122,9 @@ resource "hcloud_rdns" "production-rdns-v6" {
|
|||
}
|
||||
|
||||
# Output Server Public IP address
|
||||
output "server_ip_production" {
|
||||
output "server_ipv4_production" {
|
||||
value = "${hcloud_server.production.ipv4_address}"
|
||||
}
|
||||
output "server_ipv6_production" {
|
||||
value = "${hcloud_server.production.ipv6_address}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue