Skip to content

Commit

Permalink
Azure mx | Fix address selection
Browse files Browse the repository at this point in the history
  • Loading branch information
eytannnaim committed May 9, 2024
1 parent aed8a23 commit 1b02b9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/azurerm/dam-base-instance/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
public_ip = azurerm_linux_virtual_machine.dsf_base_instance.public_ip_address
public_ip = azurerm_linux_virtual_machine.dsf_base_instance.public_ip_address == "" ? null : azurerm_linux_virtual_machine.dsf_base_instance.public_ip_address
private_ip = azurerm_linux_virtual_machine.dsf_base_instance.private_ip_address

# root volume details
Expand Down
2 changes: 1 addition & 1 deletion modules/azurerm/mx/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
dam_model = "MVM150"
resource_type = "mx"
mx_address_for_api = module.mx.public_ip != null ? module.mx.public_ip : module.mx.private_ip
mx_address_for_api = coalesce(module.mx.public_ip, module.mx.private_ip)
security_groups_config = [ # https://docs.imperva.com/bundle/v14.14-dam-on-microsoft-azure-installation-guide/page/83147.htm
{
name = ["web", "console", "and", "api"]
Expand Down

0 comments on commit 1b02b9c

Please sign in to comment.