Fix Terraform outputs for Azure - Issue628
This commit is contained in:
@@ -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 : ""}"
|
||||
}
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user