Skip to content

Commit

Permalink
Updating DB integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmerold committed Feb 27, 2024
1 parent 3d42f1e commit fdc78b5
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 8 deletions.
36 changes: 32 additions & 4 deletions modules/sdcore-control-plane-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,26 @@ resource "juju_integration" "amf-database" {
}
}

resource "juju_integration" "udr-database" {
resource "juju_integration" "udr-auth-database" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.udr.app_name
endpoint = module.udr.database_endpoint
endpoint = module.udr.auth_database_endpoint
}

application {
name = module.mongodb.app_name
endpoint = module.mongodb.database_endpoint
}
}

resource "juju_integration" "udr-common-database" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.udr.app_name
endpoint = module.udr.common_database_endpoint
}

application {
Expand Down Expand Up @@ -276,12 +290,26 @@ resource "juju_integration" "nrf-database" {
}
}

resource "juju_integration" "webui-database" {
resource "juju_integration" "webui-auth-database" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.webui.app_name
endpoint = module.webui.auth_database_endpoint
}

application {
name = module.mongodb.app_name
endpoint = module.mongodb.database_endpoint
}
}

resource "juju_integration" "webui-common-database" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.webui.app_name
endpoint = module.webui.database_endpoint
endpoint = module.webui.common_database_endpoint
}

application {
Expand Down
36 changes: 32 additions & 4 deletions modules/sdcore-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,26 @@ resource "juju_integration" "amf-database" {
}
}

resource "juju_integration" "udr-database" {
resource "juju_integration" "udr-auth-database" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.udr.app_name
endpoint = module.udr.database_endpoint
endpoint = module.udr.auth_database_endpoint
}

application {
name = module.mongodb.app_name
endpoint = module.mongodb.database_endpoint
}
}

resource "juju_integration" "udr-common-database" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.udr.app_name
endpoint = module.udr.common_database_endpoint
}

application {
Expand Down Expand Up @@ -283,12 +297,26 @@ resource "juju_integration" "nrf-database" {
}
}

resource "juju_integration" "webui-database" {
resource "juju_integration" "webui-auth-database" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.webui.app_name
endpoint = module.webui.auth_database_endpoint
}

application {
name = module.mongodb.app_name
endpoint = module.mongodb.database_endpoint
}
}

resource "juju_integration" "webui-common-database" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.webui.app_name
endpoint = module.webui.database_endpoint
endpoint = module.webui.common_database_endpoint
}

application {
Expand Down

0 comments on commit fdc78b5

Please sign in to comment.