Skip to content
Snippets Groups Projects
Commit 699f6174 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Changing the reference of data elements within other modules :...

Changing the reference of data elements within other modules : data.openstack_networking_network_v2.internal_net.id
parent 40b739ca
No related branches found
No related tags found
3 merge requests!6Add CD feature to the repo,!5Use already existing networks to build terraform,!1wip: test-keypair without file
Pipeline #8344 failed with stages
in 12 seconds
......@@ -52,8 +52,8 @@ module "create-ohpc-instance" {
image_ohpc = var.image_ohpc
flavor = var.flavor
key_pair = module.import-keypair.keypair_name
external_network = data.external_net.id
internal_network = data.internal_net.id
external_network = data.openstack_networking_network_v2.external_net.id
internal_network = data.openstack_networking_network_v2.internal_net.id
internal_ip = var.ohpc_private_ip
floating_ip_ohpc = module.floating-ip-address.ohpc_address
ohpc_user = var.ohpc_user
......@@ -80,13 +80,12 @@ module "create-ohpc-instance" {
# runs the nodes module - creates nodes using variables defined above
# calls functions from cluster-network and import-keypair modules to get values created there for use
module "nodes" {
internal_subnet_id = module.cluster-network.internal_subnet_id
source = "./nodes"
image_compute = var.image_compute
flavor = var.flavor
key_pair = module.import-keypair.keypair_name
compute_node_count = var.compute_node_count
internal_network = module.cluster-network.id
internal_network = data.openstack_networking_network_v2.internal_net.id
}
# calls the outputs defined in the ohpc-instance module
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment