generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update Terraform module to follow CC006 (#64)
- Loading branch information
1 parent
971dd3f
commit 060c8f7
Showing
5 changed files
with
65 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# Copyright 2025 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
resource "juju_application" "cu" { | ||
name = var.app_name | ||
model = var.model_name | ||
model = var.model | ||
|
||
charm { | ||
name = "oai-ran-cu-k8s" | ||
channel = var.channel | ||
name = "oai-ran-cu-k8s" | ||
channel = var.channel | ||
revision = var.revision | ||
} | ||
config = var.config | ||
units = 1 | ||
trust = true | ||
|
||
config = var.config | ||
constraints = var.constraints | ||
units = var.units | ||
resources = var.resources | ||
trust = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# Copyright 2025 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
output "app_name" { | ||
description = "Name of the deployed application." | ||
value = juju_application.cu.name | ||
} | ||
|
||
# Required integration endpoints | ||
|
||
output "fiveg_n2_endpoint" { | ||
description = "Name of the endpoint used to provide information on connectivity to the N2 plane." | ||
value = "fiveg_n2" | ||
} | ||
|
||
output "fiveg_core_gnb_endpoint" { | ||
description = "Name of the endpoint used to provide core network configuration to gNB." | ||
value = "fiveg_core_gnb" | ||
output "provides" { | ||
value = { | ||
"fiveg_f1" = "fiveg_f1" | ||
} | ||
} | ||
|
||
output "logging_endpoint" { | ||
description = "Name of the endpoint used to integrate with the Logging provider." | ||
value = "logging" | ||
} | ||
|
||
# Provided integration endpoints | ||
|
||
output "fiveg_f1_endpoint" { | ||
description = "Name of the endpoint used to provide information about F1 interface." | ||
value = "fiveg_f1" | ||
output "requires" { | ||
value = { | ||
"fiveg_n2" = "fiveg_n2" | ||
"fiveg_core_gnb" = "fiveg_core_gnb" | ||
"logging" = "logging" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters