Skip to content

Commit 9b095ca

Browse files
authored
chore: update example comments (#885)
1 parent 7a7aad3 commit 9b095ca

File tree

6 files changed

+29
-8
lines changed

6 files changed

+29
-8
lines changed

examples/add_rules_to_sg/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ locals {
166166
}
167167

168168
module "ocp_base" {
169-
source = "../.."
169+
source = "../.."
170+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
171+
# source = "terraform-ibm-modules/base-ocp-vpc/ibm"
172+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
170173
cluster_name = var.prefix
171174
resource_group_id = module.resource_group.resource_group_id
172175
region = var.region

examples/advanced/main.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ locals {
164164
}
165165

166166
module "ocp_base" {
167-
source = "../.."
167+
source = "../.."
168+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
169+
# source = "terraform-ibm-modules/base-ocp-vpc/ibm"
170+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
168171
cluster_name = var.prefix
169172
resource_group_id = module.resource_group.resource_group_id
170173
region = var.region
@@ -213,8 +216,11 @@ module "worker_pool" {
213216
########################################################################################################################
214217

215218
module "kube_audit" {
216-
depends_on = [module.ocp_base] # Wait for the cluster to completely deploy.
217-
source = "../../modules/kube-audit"
219+
depends_on = [module.ocp_base] # Wait for the cluster to completely deploy.
220+
source = "../../modules/kube-audit"
221+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
222+
# source = "terraform-ibm-modules/base-ocp-vpc/ibm//modules/kube-audit"
223+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
218224
cluster_id = module.ocp_base.cluster_id
219225
cluster_resource_group_id = module.resource_group.resource_group_id
220226
audit_log_policy = "WriteRequestBodies"

examples/basic/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ locals {
6969
}
7070

7171
module "ocp_base" {
72-
source = "../.."
72+
source = "../.."
73+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
74+
# source = "terraform-ibm-modules/base-ocp-vpc/ibm"
75+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
7376
resource_group_id = module.resource_group.resource_group_id
7477
region = var.region
7578
tags = var.resource_tags

examples/cross_kms_support/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ locals {
7575
}
7676

7777
module "ocp_base" {
78-
source = "../.."
78+
source = "../.."
79+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
80+
# source = "terraform-ibm-modules/base-ocp-vpc/ibm"
81+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
7982
resource_group_id = module.resource_group.resource_group_id
8083
region = var.region
8184
tags = var.resource_tags

examples/custom_sg/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ module "custom_sg" {
9595

9696

9797
module "ocp_base" {
98-
source = "../.."
98+
source = "../.."
99+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
100+
# source = "terraform-ibm-modules/base-ocp-vpc/ibm"
101+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
99102
resource_group_id = module.resource_group.resource_group_id
100103
region = var.region
101104
tags = var.resource_tags

examples/multiple_mzr_clusters/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ module "ocp_base_cluster_1" {
136136
}
137137

138138
module "ocp_base_cluster_2" {
139-
source = "../.."
139+
source = "../.."
140+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
141+
# source = "terraform-ibm-modules/base-ocp-vpc/ibm"
142+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
140143
cluster_name = "${var.prefix}-cluster-2"
141144
resource_group_id = module.resource_group.resource_group_id
142145
region = var.region

0 commit comments

Comments
 (0)