From 798a4be0c49e245d0b528fc4e5bd9ec43b0e836c Mon Sep 17 00:00:00 2001 From: Julien ADAMEK Date: Tue, 12 Feb 2019 17:09:12 +0100 Subject: [PATCH 1/2] Update deprecated function * deprecated public_ip_address_allocation in favor of allocation_method --- azure/terraform/network.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure/terraform/network.tf b/azure/terraform/network.tf index 77e91b14c..37fa87a9c 100644 --- a/azure/terraform/network.tf +++ b/azure/terraform/network.tf @@ -210,7 +210,7 @@ resource "azurerm_public_ip" "iscsisrv" { name = "iscsisrv-ip" location = "${var.az_region}" resource_group_name = "${azurerm_resource_group.myrg.name}" - public_ip_address_allocation = "Dynamic" + allocation_method = "Dynamic" idle_timeout_in_minutes = 30 tags { @@ -250,7 +250,7 @@ resource "azurerm_public_ip" "clusternodes" { name = "clusternodes-ip-${count.index}" location = "${var.az_region}" resource_group_name = "${azurerm_resource_group.myrg.name}" - public_ip_address_allocation = "Dynamic" + allocation_method = "Dynamic" idle_timeout_in_minutes = 30 tags { From 423eddee03108d72937b3e0cbee1c653c1583ed1 Mon Sep 17 00:00:00 2001 From: Julien ADAMEK Date: Tue, 12 Feb 2019 17:22:15 +0100 Subject: [PATCH 2/2] Terraform fmt needed for Travis check --- azure/terraform/network.tf | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/azure/terraform/network.tf b/azure/terraform/network.tf index 37fa87a9c..2b89aa95e 100644 --- a/azure/terraform/network.tf +++ b/azure/terraform/network.tf @@ -207,11 +207,11 @@ resource "azurerm_network_interface" "iscsisrv" { } resource "azurerm_public_ip" "iscsisrv" { - name = "iscsisrv-ip" - location = "${var.az_region}" - resource_group_name = "${azurerm_resource_group.myrg.name}" - allocation_method = "Dynamic" - idle_timeout_in_minutes = 30 + name = "iscsisrv-ip" + location = "${var.az_region}" + resource_group_name = "${azurerm_resource_group.myrg.name}" + allocation_method = "Dynamic" + idle_timeout_in_minutes = 30 tags { workspace = "${terraform.workspace}" @@ -246,12 +246,12 @@ resource "azurerm_network_interface_backend_address_pool_association" "clusterno } resource "azurerm_public_ip" "clusternodes" { - count = "${var.ninstances}" - name = "clusternodes-ip-${count.index}" - location = "${var.az_region}" - resource_group_name = "${azurerm_resource_group.myrg.name}" - allocation_method = "Dynamic" - idle_timeout_in_minutes = 30 + count = "${var.ninstances}" + name = "clusternodes-ip-${count.index}" + location = "${var.az_region}" + resource_group_name = "${azurerm_resource_group.myrg.name}" + allocation_method = "Dynamic" + idle_timeout_in_minutes = 30 tags { workspace = "${terraform.workspace}"