mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
terraform: ignore changes of OpenStack instance image
This commit is contained in:
parent
923a41ba01
commit
addcfaaaf4
@ -45,7 +45,6 @@ data "openstack_compute_flavor_v2" "flavor" {
|
|||||||
resource "openstack_compute_instance_v2" "instance_group_member" {
|
resource "openstack_compute_instance_v2" "instance_group_member" {
|
||||||
name = "${local.name}-${count.index}"
|
name = "${local.name}-${count.index}"
|
||||||
count = var.initial_count
|
count = var.initial_count
|
||||||
image_id = var.image_id
|
|
||||||
flavor_id = data.openstack_compute_flavor_v2.flavor.id
|
flavor_id = data.openstack_compute_flavor_v2.flavor.id
|
||||||
tags = local.tags
|
tags = local.tags
|
||||||
# TODO(malt3): get this API enabled in the test environment
|
# TODO(malt3): get this API enabled in the test environment
|
||||||
@ -84,4 +83,7 @@ resource "openstack_compute_instance_v2" "instance_group_member" {
|
|||||||
openstack-load-balancer-endpoint = var.openstack_load_balancer_endpoint
|
openstack-load-balancer-endpoint = var.openstack_load_balancer_endpoint
|
||||||
})
|
})
|
||||||
availability_zone_hints = length(var.availability_zone) > 0 ? var.availability_zone : null
|
availability_zone_hints = length(var.availability_zone) > 0 ? var.availability_zone : null
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [block_device] # block device contains current image, which can be updated from inside the cluster
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user