Use the remote data source.

This commit is contained in:
Andrea Dell'Amico 2023-12-13 16:06:36 +01:00
parent bf6847de2b
commit 13289bc6f8
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 4 deletions

View File

@ -42,8 +42,8 @@ module "instance_without_data_volume" {
name = "resource-registry-1", name = "resource-registry-1",
description = "This instance serves resource-registry service", description = "This instance serves resource-registry service",
flavor = module.common_variables.flavor_list.m1_large, flavor = module.common_variables.flavor_list.m1_large,
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, 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], 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], server_groups_ids = [openstack_compute_servergroup_v2.resource_registry_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -51,8 +51,8 @@ module "instance_without_data_volume" {
name = "resource-registry-2", name = "resource-registry-2",
description = "This instance serves resource-registry service", description = "This instance serves resource-registry service",
flavor = module.common_variables.flavor_list.m1_large, flavor = module.common_variables.flavor_list.m1_large,
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, 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], 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], server_groups_ids = [openstack_compute_servergroup_v2.resource_registry_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }