Skip to content

Commit

Permalink
fix: changed oci provider namespace in submodules (#508)
Browse files Browse the repository at this point in the history
* fix: changed oci provider namespace in submodules

Signed-off-by: Ali Mukadam <[email protected]>
  • Loading branch information
hyder authored Apr 7, 2022
1 parent 25c6b3b commit 4ef0c72
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ generated/**
# visual code
**/.vscode/*

.terraform.lock.hcl
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module "vcn" {

module "bastion" {
source = "oracle-terraform-modules/bastion/oci"
version = "3.0.0"
version = "3.1.0"

tenancy_id = var.tenancy_id
compartment_id = var.compartment_id
Expand Down Expand Up @@ -84,7 +84,7 @@ module "bastion" {

module "operator" {
source = "oracle-terraform-modules/operator/oci"
version = "3.0.3"
version = "3.1.0"

tenancy_id = var.tenancy_id

Expand Down
10 changes: 10 additions & 0 deletions modules/bastionsvc/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_providers {
oci = {
source = "oracle/oci"
# pass oci home region provider explicitly for identity operations
version = ">= 4.67.3"
}
}
required_version = ">= 1.0.0"
}
3 changes: 2 additions & 1 deletion modules/extensions/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
terraform {
required_providers {
oci = {
source = "hashicorp/oci"
source = "oracle/oci"
# pass oci home region provider explicitly for identity operations
configuration_aliases = [oci.home]
version = ">= 4.67.3"
}
}
required_version = ">= 1.0.0"
Expand Down
6 changes: 1 addition & 5 deletions modules/network/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,4 @@ variable "public_lb_allowed_ports" {

variable "create_fss" {
type = bool
}

variable "create_fss" {
type = bool
}
}
10 changes: 10 additions & 0 deletions modules/network/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_providers {
oci = {
source = "oracle/oci"
# pass oci home region provider explicitly for identity operations
version = ">= 4.67.3"
}
}
required_version = ">= 1.0.0"
}
3 changes: 2 additions & 1 deletion modules/oke/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
terraform {
required_providers {
oci = {
source = "hashicorp/oci"
source = "oracle/oci"
# pass oci home region provider explicitly for identity operations
configuration_aliases = [oci.home]
version = ">= 4.67.3"
}
}
required_version = ">= 1.0.0"
Expand Down
11 changes: 0 additions & 11 deletions modules/storage/fss.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
# Copyright 2017, 2021 Oracle Corporation and/or affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl

terraform {
required_providers {
oci = {
source = "hashicorp/oci"
# pass oci home region provider explicitly for identity operations
configuration_aliases = [oci.home]
}
}
required_version = ">= 1.0.0"
}

# Create file system
resource "oci_file_storage_file_system" "fss" {
availability_domain = local.availability_domain
Expand Down
11 changes: 11 additions & 0 deletions modules/storage/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
terraform {
required_providers {
oci = {
source = "oracle/oci"
# pass oci home region provider explicitly for identity operations
configuration_aliases = [oci.home]
version = ">= 4.67.3"
}
}
required_version = ">= 1.0.0"
}
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
terraform {
required_providers {
oci = {
source = "oracle/oci"
version = ">= 4.67.3"
source = "oracle/oci"
configuration_aliases = [oci.home]
version = ">= 4.67.3"
}
}
required_version = ">= 1.0.0"
Expand Down

0 comments on commit 4ef0c72

Please sign in to comment.