Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding support for multiple clouds hosted on the same controller #8

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/sdcore-control-plane-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
resource "juju_model" "sdcore" {
count = var.create_model == true ? 1 : 0
name = var.model_name

cloud {
name = var.cloud_name
}
}

module "amf" {
Expand Down
6 changes: 6 additions & 0 deletions modules/sdcore-control-plane-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ variable "model_name" {
default = ""
}

variable "cloud_name" {
description = "Name of the Juju cloud to create Juju model on."
type = string
default = "microk8s"
}

variable "create_model" {
description = "Allows to skip Juju model creation and re-use a model created in a higher level module."
type = bool
Expand Down
4 changes: 4 additions & 0 deletions modules/sdcore-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
resource "juju_model" "sdcore" {
count = var.create_model == true ? 1 : 0
name = var.model_name

cloud {
name = var.cloud_name
}
}

module "amf" {
Expand Down
6 changes: 6 additions & 0 deletions modules/sdcore-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ variable "model_name" {
default = ""
}

variable "cloud_name" {
description = "Name of the Juju cloud to create Juju model on."
type = string
default = "microk8s"
}

variable "create_model" {
description = "Allows to skip Juju model creation and re-use a model created in a higher level module."
type = bool
Expand Down
4 changes: 4 additions & 0 deletions modules/sdcore-user-plane-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
resource "juju_model" "sdcore" {
count = var.create_model == true ? 1 : 0
name = var.model_name

cloud {
name = var.cloud_name
}
}

module "upf" {
Expand Down
6 changes: 6 additions & 0 deletions modules/sdcore-user-plane-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ variable "model_name" {
default = ""
}

variable "cloud_name" {
description = "Name of the Juju cloud to create Juju model on."
type = string
default = "microk8s"
}

variable "create_model" {
description = "Allows to skip Juju model creation and re-use a model created in a higher level module."
type = bool
Expand Down