diff --git a/terraform/product/modules/landscape-scalable/main.tf b/terraform/product/modules/landscape-scalable/main.tf index 2c906c24..4f022304 100644 --- a/terraform/product/modules/landscape-scalable/main.tf +++ b/terraform/product/modules/landscape-scalable/main.tf @@ -531,7 +531,6 @@ resource "juju_integration" "haproxy_receive_ca_certs" { resource "juju_application" "pgbouncer" { name = var.pgbouncer.app_name model_uuid = var.model_uuid - units = 0 config = var.pgbouncer.config charm { @@ -541,6 +540,11 @@ resource "juju_application" "pgbouncer" { base = var.pgbouncer.base } + lifecycle { + # It's a subordinate + ignore_changes = [units] + } + count = var.pgbouncer != null && local.has_modern_pg_interface ? 1 : 0 }