Use the remote data source.
This commit is contained in:
parent
bf6847de2b
commit
13289bc6f8
|
@ -42,8 +42,8 @@ module "instance_without_data_volume" {
|
|||
name = "resource-registry-1",
|
||||
description = "This instance serves resource-registry service",
|
||||
flavor = module.common_variables.flavor_list.m1_large,
|
||||
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb],
|
||||
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers, module.common_variables.security_group_list.debugging_from_jump_node],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb],
|
||||
security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, module.common_variables.security_group_list.http_and_https_from_the_load_balancers, module.common_variables.security_group_list.debugging_from_jump_node],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.resource_registry_server_group.id],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
},
|
||||
|
@ -51,8 +51,8 @@ module "instance_without_data_volume" {
|
|||
name = "resource-registry-2",
|
||||
description = "This instance serves resource-registry service",
|
||||
flavor = module.common_variables.flavor_list.m1_large,
|
||||
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb],
|
||||
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers, module.common_variables.security_group_list.debugging_from_jump_node],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb],
|
||||
security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, module.common_variables.security_group_list.http_and_https_from_the_load_balancers, module.common_variables.security_group_list.debugging_from_jump_node],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.resource_registry_server_group.id],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue