Skip to content

Commit a084f1c

Browse files
committed
ignore port binding info; fixes tf when admin
1 parent fad0ff4 commit a084f1c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

environments/site/tofu/control.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ resource "openstack_networking_port_v2" "control" {
3434
binding {
3535
vnic_type = lookup(var.vnic_types, each.key, "normal")
3636
}
37+
38+
lifecycle {
39+
ignore_changes = [ binding ]
40+
}
3741
}
3842

3943
resource "openstack_compute_instance_v2" "control" {

environments/site/tofu/node_group/nodes.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ resource "openstack_networking_port_v2" "compute" {
7171
binding {
7272
vnic_type = lookup(var.vnic_types, each.value.net.network, "normal")
7373
}
74+
75+
lifecycle {
76+
ignore_changes = [ binding ]
77+
}
7478
}
7579

7680
resource "openstack_compute_instance_v2" "compute_fixed_image" {

0 commit comments

Comments
 (0)