From df52b44db6e20c3f2356cb17e4a04ddf93c89d13 Mon Sep 17 00:00:00 2001 From: BackInBash <48181660+BackInBash@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:11:02 +0200 Subject: [PATCH] updated terraform provider --- 00-provider.tf | 2 +- 04-pfsense-appliance.tf | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/00-provider.tf b/00-provider.tf index c2cb32f..bc15a82 100644 --- a/00-provider.tf +++ b/00-provider.tf @@ -12,7 +12,7 @@ terraform { required_providers { openstack = { source = "terraform-provider-openstack/openstack" - version = "1.53.0" + version = "2.0.0" } } } diff --git a/04-pfsense-appliance.tf b/04-pfsense-appliance.tf index 5e4e375..c339057 100644 --- a/04-pfsense-appliance.tf +++ b/04-pfsense-appliance.tf @@ -67,8 +67,7 @@ resource "openstack_networking_floatingip_v2" "fip" { pool = "floating-net" } -resource "openstack_compute_floatingip_associate_v2" "fip" { +resource "openstack_networking_floatingip_associate_v2" "fip" { floating_ip = openstack_networking_floatingip_v2.fip.address - instance_id = openstack_compute_instance_v2.instance_fw.id - fixed_ip = openstack_compute_instance_v2.instance_fw.network.0.fixed_ip_v4 -} + port_id = openstack_networking_port_v2.wan_port_1.id +} \ No newline at end of file