Fix Terraform outputs for Azure - Issue628

This commit is contained in:
Chris Long
2021-03-29 20:26:41 -07:00
parent b664ebebf6
commit 280017ed2c
2 changed files with 3 additions and 3 deletions

View File

@@ -4,5 +4,5 @@ locals {
ata_url = "https://${azurerm_public_ip.wef-publicip.ip_address}"
guacamole_url = "http://${azurerm_public_ip.logger-publicip.ip_address}:8080/guacamole"
velociraptor_url = "https://${azurerm_public_ip.logger-publicip.ip_address}:9999"
exchange_url = "https://${azurerm_public_ip.exchange-publicip[0].ip_address}"
exchange_url = "https://${var.create_exchange_server ? azurerm_public_ip.exchange-publicip[0].ip_address : ""}"
}

View File

@@ -19,7 +19,7 @@ output "win10_public_ip" {
}
output "exchange_public_ip" {
value = azurerm_public_ip.exchange-publicip[0].ip_address
value = "${var.create_exchange_server ? azurerm_public_ip.exchange-publicip[0].ip_address : null}"
}
output "ata_url" {
@@ -43,5 +43,5 @@ output "velociraptor_url" {
}
output "exchange_url" {
value = local.exchange_url
value = "${var.create_exchange_server ? local.exchange_url : null}"
}