Skip to content

Commit

Permalink
Change module deependencies to include data sources
Browse files Browse the repository at this point in the history
Fixes #131

Signed-off-by: Yussuf Shaikh <yussuf.shaikh@ibm.com>
  • Loading branch information
yussufsh committed Jan 29, 2021
1 parent 4ddb0f6 commit 61e10e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/1_bastion/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
################################################################

output "bastion_ip" {
value = openstack_compute_instance_v2.bastion.access_ip_v4
depends_on = [null_resource.bastion_packages]
value = openstack_compute_instance_v2.bastion.access_ip_v4
}
4 changes: 1 addition & 3 deletions ocp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ module "network" {
}

module "helpernode" {
depends_on = [module.bastion]
source = "./modules/3_helpernode"

cluster_domain = var.cluster_domain
Expand Down Expand Up @@ -111,7 +110,6 @@ module "helpernode" {
}

module "nodes" {
depends_on = [module.helpernode]
source = "./modules/4_nodes"

bastion_ip = module.bastion.bastion_ip
Expand All @@ -128,7 +126,7 @@ module "nodes" {
}

module "install" {
depends_on = [module.nodes]
depends_on = [module.helpernode, module.nodes]
source = "./modules/5_install"

cluster_domain = var.cluster_domain
Expand Down

0 comments on commit 61e10e7

Please sign in to comment.