remove public ip thingy
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
address_prefix = "10.0.2.0/24"
|
||||
}*/
|
||||
|
||||
resource "azurerm_public_ip" "publicip" {
|
||||
/*resource "azurerm_public_ip" "publicip" {
|
||||
|
||||
count = var.isExternal? 1 : 0
|
||||
|
||||
@@ -80,7 +80,7 @@ resource "azurerm_public_ip" "publicip" {
|
||||
location = var.location
|
||||
allocation_method = "Dynamic"
|
||||
domain_name_label = lower(var.prefix)
|
||||
}
|
||||
}*/
|
||||
|
||||
resource "azurerm_network_interface" "nic" {
|
||||
name = "${var.prefix}-nic"
|
||||
@@ -92,7 +92,6 @@ resource "azurerm_network_interface" "nic" {
|
||||
name = "${var.prefix}-ip-cfg"
|
||||
subnet_id = var.subnet_id
|
||||
private_ip_address_allocation = "Dynamic"
|
||||
public_ip_address_id = var.isExternal? azurerm_public_ip.publicip[0].id : null
|
||||
}
|
||||
|
||||
tags = {
|
||||
|
||||
@@ -8,12 +8,4 @@ output "private_ip_address" {
|
||||
|
||||
output "ip_configuration_name" {
|
||||
value = "${var.prefix}-ip-cfg"
|
||||
}
|
||||
|
||||
output "public_ip_address" {
|
||||
value = var.isExternal? azurerm_public_ip.publicip[0].ip_address : null
|
||||
}
|
||||
|
||||
output "fqdn" {
|
||||
value = var.isExternal? azurerm_public_ip.publicip[0].fqdn : null
|
||||
}
|
||||
@@ -24,12 +24,4 @@ output "nic_private_ip_address" {
|
||||
|
||||
output "nic_ip_configuration_name" {
|
||||
value = module.qmi-nic.ip_configuration_name
|
||||
}
|
||||
|
||||
output "nic_fqdn" {
|
||||
value = var.isExternal? module.qmi-nic.fqdn : null
|
||||
}
|
||||
|
||||
output "nic_public_ip_address" {
|
||||
value = var.isExternal? module.qmi-nic.public_ip_address : null
|
||||
}
|
||||
@@ -38,12 +38,4 @@ output "mysql_demo_password" {
|
||||
value = "Qlik1234!"
|
||||
}
|
||||
|
||||
output "nic_fqdn" {
|
||||
value = var.isExternal? module.qmi-nic.fqdn : null
|
||||
}
|
||||
|
||||
output "nic_public_ip_address" {
|
||||
value = var.isExternal? module.qmi-nic.public_ip_address : null
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -26,14 +26,6 @@ output "nic_private_ip_address" {
|
||||
value = module.qmi-nic.private_ip_address
|
||||
}
|
||||
|
||||
output "nic_fqdn" {
|
||||
value = var.isExternal? module.qmi-nic.fqdn : null
|
||||
}
|
||||
|
||||
output "nic_public_ip_address" {
|
||||
value = var.isExternal? module.qmi-nic.public_ip_address : null
|
||||
}
|
||||
|
||||
output "nic_ip_configuration_name" {
|
||||
value = module.qmi-nic.ip_configuration_name
|
||||
}
|
||||
Reference in New Issue
Block a user