Skip to content

Commit

Permalink
Caas updated to use openstack_networking_floatingip_associate_v2 (#445)
Browse files Browse the repository at this point in the history
Before we can move to v3.0.0 we need to use the new floating ip
resource, now the compute one has been removed.
To unblock this move, we add a tempory pin to use v2.1.0
for a bit.
  • Loading branch information
JohnGarbutt authored Oct 1, 2024
1 parent 17a2432 commit bb8789e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/cluster_infra/templates/providers.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ terraform {
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
# TODO we must upgrade to 3.0.0
# but only after we stop using the deprecated
# openstack_compute_floatingip_associate_v2
version = "~>2.1.0"
}
}
}
4 changes: 2 additions & 2 deletions ansible/roles/cluster_infra/templates/resources.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ data "openstack_networking_floatingip_v2" "cluster_floating_ip" {
{% endif %}
}

resource "openstack_compute_floatingip_associate_v2" "login_floatingip_assoc" {
resource "openstack_networking_floatingip_associate_v2" "login_floatingip_assoc" {
floating_ip = "${data.openstack_networking_floatingip_v2.cluster_floating_ip.address}"
instance_id = "${openstack_compute_instance_v2.login.id}"
port_id = "${openstack_networking_port_v2.login.id}"
}

0 comments on commit bb8789e

Please sign in to comment.