From 99423d1f6e6022338bf5d9eb19ed3dbbdbb03f4e Mon Sep 17 00:00:00 2001 From: Edward Fink Date: Tue, 4 Jun 2024 21:52:00 -0700 Subject: [PATCH] fix(examples): don't point to registry for modules --- examples/satellite-azure/cluster.tf | 8 ++++++-- examples/satellite-vmware/main.tf | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/examples/satellite-azure/cluster.tf b/examples/satellite-azure/cluster.tf index ab5a376..30c5d81 100644 --- a/examples/satellite-azure/cluster.tf +++ b/examples/satellite-azure/cluster.tf @@ -7,7 +7,9 @@ # Create satellite ROKS cluster ################################################################### module "satellite-cluster" { - source = "terraform-ibm-modules/satellite/ibm//modules/cluster" + // source = "terraform-ibm-modules/satellite/ibm//modules/cluster" + + source = "../../modules/cluster" depends_on = [module.satellite-host] create_cluster = var.create_cluster @@ -29,7 +31,9 @@ module "satellite-cluster" { # Create worker pool on existing ROKS cluster ################################################################### module "satellite-cluster-worker-pool" { - source = "terraform-ibm-modules/satellite/ibm//modules/configure-cluster-worker-pool" + // source = "terraform-ibm-modules/satellite/ibm//modules/configure-cluster-worker-pool" + + source = "../../modules/configure-cluster-worker-pool" depends_on = [module.satellite-cluster] create_cluster_worker_pool = var.create_cluster_worker_pool diff --git a/examples/satellite-vmware/main.tf b/examples/satellite-vmware/main.tf index b874374..d1093fe 100644 --- a/examples/satellite-vmware/main.tf +++ b/examples/satellite-vmware/main.tf @@ -22,7 +22,9 @@ locals { } module "satellite-location" { - source = "terraform-ibm-modules/satellite/ibm//modules/location" + // source = "terraform-ibm-modules/satellite/ibm//modules/location" + source = "../../modules/location" + is_location_exist = var.is_location_exist coreos_enabled = true coreos_host = true @@ -269,7 +271,8 @@ resource "vcd_vm_internal_disk" "storage_disks_2" { # Assign control plane hosts to control plane module "satellite-host" { - source = "terraform-ibm-modules/satellite/ibm//modules/host" + // source = "terraform-ibm-modules/satellite/ibm//modules/host" + source = "../../modules/host" host_count = var.num_control_plane_hosts location = module.satellite-location.location_id host_vms = [for v in vcd_vapp_vm.control_plane_vms : v.name]