Using variable from state

This commit is contained in:
Luca Frosini 2023-12-14 12:13:43 +01:00
parent fb2ad871b3
commit 75b6367e1f
14 changed files with 80 additions and 80 deletions

View File

@ -40,8 +40,8 @@ module "instance_without_data_volume" {
name = "accounting-service-1", name = "accounting-service-1",
description = "This instance serves accounting service", description = "This instance serves accounting service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main", "timescaledb-net"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -49,8 +49,8 @@ module "instance_without_data_volume" {
name = "accounting-service-2", name = "accounting-service-2",
description = "This instance serves accounting service", description = "This instance serves accounting service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main", "timescaledb-net"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -42,8 +42,8 @@ module "instance_without_data_volume" {
name = "gcat-1", name = "gcat-1",
description = "This instance serves gcat service", description = "This instance serves gcat service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.gcat_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 = "gcat-2", name = "gcat-2",
description = "This instance serves gcat service", description = "This instance serves gcat service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -40,8 +40,8 @@ module "instance_without_data_volume" {
name = "grsf-publisher-1", name = "grsf-publisher-1",
description = "This instance serves GRSF Publisher service", description = "This instance serves GRSF Publisher service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -49,8 +49,8 @@ module "instance_without_data_volume" {
name = "grsf-publisher-2", name = "grsf-publisher-2",
description = "This instance serves GRSF Publisher service", description = "This instance serves GRSF Publisher service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

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_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-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], 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_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-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], 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
} }

View File

@ -30,7 +30,7 @@ module "common_variables" {
# #
resource "openstack_compute_servergroup_v2" "accounting_dashboard_harvester_server_group" { resource "openstack_compute_servergroup_v2" "accounting_dashboard_harvester_server_group" {
name = "accounting-dashboard-harvester-se-plugin" name = "accounting-dashboard-harvester-se-plugin"
policies = [module.common_variables.policy_list.anti_affinity] policies = [module.common_variables.policy_list.soft_anti_affinity]
} }
# #
@ -38,7 +38,7 @@ resource "openstack_compute_servergroup_v2" "accounting_dashboard_harvester_serv
# #
resource "openstack_compute_servergroup_v2" "accounting_aggregator_server_group" { resource "openstack_compute_servergroup_v2" "accounting_aggregator_server_group" {
name = "accounting-aggregator-se-plugin" name = "accounting-aggregator-se-plugin"
policies = [module.common_variables.policy_list.anti_affinity] policies = [module.common_variables.policy_list.soft_anti_affinity]
} }
# #
@ -46,7 +46,7 @@ resource "openstack_compute_servergroup_v2" "accounting_aggregator_server_group"
# #
resource "openstack_compute_servergroup_v2" "resource_checker_server_group" { resource "openstack_compute_servergroup_v2" "resource_checker_server_group" {
name = "resource-checker-se-plugin" name = "resource-checker-se-plugin"
policies = [module.common_variables.policy_list.anti_affinity] policies = [module.common_variables.policy_list.soft_anti_affinity]
} }
# #
@ -54,7 +54,7 @@ resource "openstack_compute_servergroup_v2" "resource_checker_server_group" {
# #
resource "openstack_compute_servergroup_v2" "social_data_indexer_server_group" { resource "openstack_compute_servergroup_v2" "social_data_indexer_server_group" {
name = "social-data-indexer-se-plugin" name = "social-data-indexer-se-plugin"
policies = [module.common_variables.policy_list.anti_affinity] policies = [module.common_variables.policy_list.soft_anti_affinity]
} }
# #
@ -62,7 +62,7 @@ resource "openstack_compute_servergroup_v2" "social_data_indexer_server_group" {
# #
resource "openstack_compute_servergroup_v2" "accounting_insert_storage_server_group" { resource "openstack_compute_servergroup_v2" "accounting_insert_storage_server_group" {
name = "accounting-insert-storage-se-plugin" name = "accounting-insert-storage-se-plugin"
policies = [module.common_variables.policy_list.anti_affinity] policies = [module.common_variables.policy_list.soft_anti_affinity]
} }
@ -74,8 +74,8 @@ module "instance_without_data_volume" {
name = "accounting-dashboard-harvester-se-plugin", name = "accounting-dashboard-harvester-se-plugin",
description = "This instance serves smart-executor service with accounting-dashboard-harvester-se-plugin", description = "This instance serves smart-executor service with accounting-dashboard-harvester-se-plugin",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb, module.common_variables.networks_list.shared_postgresql], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb, module.common_variables.networks_list.shared_postgresql],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -83,8 +83,8 @@ module "instance_without_data_volume" {
name = "accounting-aggregator-se-plugin", name = "accounting-aggregator-se-plugin",
description = "This instance serves smart-executor service with accounting-aggregator-se-plugin", description = "This instance serves smart-executor service with accounting-aggregator-se-plugin",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_aggregator_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_aggregator_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -92,8 +92,8 @@ module "instance_without_data_volume" {
name = "resource-checker-se-plugin", name = "resource-checker-se-plugin",
description = "This instance serves smart-executor service with resource-checker-se-plugin", description = "This instance serves smart-executor service with resource-checker-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -102,8 +102,8 @@ module "instance_without_data_volume" {
name = "social-data-indexer-se-plugin", name = "social-data-indexer-se-plugin",
description = "This instance serves smart-executor service with social-data-indexer-se-plugin", description = "This instance serves smart-executor service with social-data-indexer-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -111,8 +111,8 @@ module "instance_without_data_volume" {
name = "accounting-insert-storage-se-plugin", name = "accounting-insert-storage-se-plugin",
description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin", description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -40,8 +40,8 @@ module "instance_without_data_volume" {
name = "accounting-service-1", name = "accounting-service-1",
description = "This instance serves accounting service", description = "This instance serves accounting service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-cloud-main", "timescaledb-net"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -49,8 +49,8 @@ module "instance_without_data_volume" {
name = "accounting-service-2", name = "accounting-service-2",
description = "This instance serves accounting service", description = "This instance serves accounting service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-cloud-main", "timescaledb-net"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -42,8 +42,8 @@ module "instance_without_data_volume" {
name = "gcat-1", name = "gcat-1",
description = "This instance serves gcat service", description = "This instance serves gcat service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.gcat_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 = "gcat-2", name = "gcat-2",
description = "This instance serves gcat service", description = "This instance serves gcat service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -40,8 +40,8 @@ module "instance_without_data_volume" {
name = "grsf-publisher-1", name = "grsf-publisher-1",
description = "This instance serves GRSF Publisher service", description = "This instance serves GRSF Publisher service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -49,8 +49,8 @@ module "instance_without_data_volume" {
name = "grsf-publisher-2", name = "grsf-publisher-2",
description = "This instance serves GRSF Publisher service", description = "This instance serves GRSF Publisher service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

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_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-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], 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_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-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], 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
} }

View File

@ -74,8 +74,8 @@ module "instance_without_data_volume" {
name = "accounting-dashboard-harvester-se-plugin", name = "accounting-dashboard-harvester-se-plugin",
description = "This instance serves smart-executor service with accounting-dashboard-harvester-se-plugin", description = "This instance serves smart-executor service with accounting-dashboard-harvester-se-plugin",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-cloud-main", module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb, module.common_variables.networks_list.shared_postgresql], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb, module.common_variables.networks_list.shared_postgresql],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -83,8 +83,8 @@ module "instance_without_data_volume" {
name = "accounting-aggregator-se-plugin", name = "accounting-aggregator-se-plugin",
description = "This instance serves smart-executor service with accounting-aggregator-se-plugin", description = "This instance serves smart-executor service with accounting-aggregator-se-plugin",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-pre-cloud-main", module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_aggregator_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_aggregator_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -92,8 +92,8 @@ module "instance_without_data_volume" {
name = "resource-checker-se-plugin", name = "resource-checker-se-plugin",
description = "This instance serves smart-executor service with resource-checker-se-plugin", description = "This instance serves smart-executor service with resource-checker-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-pre-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -102,8 +102,8 @@ module "instance_without_data_volume" {
name = "social-data-indexer-se-plugin", name = "social-data-indexer-se-plugin",
description = "This instance serves smart-executor service with social-data-indexer-se-plugin", description = "This instance serves smart-executor service with social-data-indexer-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-pre-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -111,8 +111,8 @@ module "instance_without_data_volume" {
name = "accounting-insert-storage-se-plugin", name = "accounting-insert-storage-se-plugin",
description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin", description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-pre-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -40,8 +40,8 @@ module "instance_without_data_volume" {
name = "accounting-service-1", name = "accounting-service-1",
description = "This instance serves accounting service", description = "This instance serves accounting service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-production-cloud-main", "timescaledb-net"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -49,8 +49,8 @@ module "instance_without_data_volume" {
name = "accounting-service-2", name = "accounting-service-2",
description = "This instance serves accounting service", description = "This instance serves accounting service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-production-cloud-main", "timescaledb-net"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_service_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -30,7 +30,7 @@ module "common_variables" {
# #
resource "openstack_compute_servergroup_v2" "gcat_server_group" { resource "openstack_compute_servergroup_v2" "gcat_server_group" {
name = "gcat" name = "gcat"
policies = [module.common_variables.policy_list.anti_affinity] policies = [module.common_variables.policy_list.soft_anti_affinity]
} }
@ -42,8 +42,8 @@ module "instance_without_data_volume" {
name = "gcat-1", name = "gcat-1",
description = "This instance serves gcat service", description = "This instance serves gcat service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-production-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.gcat_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 = "gcat-2", name = "gcat-2",
description = "This instance serves gcat service", description = "This instance serves gcat service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-production-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.gcat_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -40,8 +40,8 @@ module "instance_without_data_volume" {
name = "grsf-publisher-1", name = "grsf-publisher-1",
description = "This instance serves GRSF Publisher service", description = "This instance serves GRSF Publisher service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-production-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -49,8 +49,8 @@ module "instance_without_data_volume" {
name = "grsf-publisher-2", name = "grsf-publisher-2",
description = "This instance serves GRSF Publisher service", description = "This instance serves GRSF Publisher service",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-production-cloud-main"], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }

View File

@ -74,8 +74,8 @@ module "instance_without_data_volume" {
name = "accounting-dashboard-harvester-se-plugin", name = "accounting-dashboard-harvester-se-plugin",
description = "This instance serves smart-executor service with accounting-dashboard-harvester-se-plugin", description = "This instance serves smart-executor service with accounting-dashboard-harvester-se-plugin",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb, module.common_variables.networks_list.shared_postgresql], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb, module.common_variables.networks_list.shared_postgresql],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -83,8 +83,8 @@ module "instance_without_data_volume" {
name = "accounting-aggregator-se-plugin", name = "accounting-aggregator-se-plugin",
description = "This instance serves smart-executor service with accounting-aggregator-se-plugin", description = "This instance serves smart-executor service with accounting-aggregator-se-plugin",
flavor = module.common_variables.flavor_list.m1_medium, flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se, module.common_variables.networks_list.timescaledb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_aggregator_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_aggregator_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -92,8 +92,8 @@ module "instance_without_data_volume" {
name = "resource-checker-se-plugin", name = "resource-checker-se-plugin",
description = "This instance serves smart-executor service with resource-checker-se-plugin", description = "This instance serves smart-executor service with resource-checker-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -102,8 +102,8 @@ module "instance_without_data_volume" {
name = "social-data-indexer-se-plugin", name = "social-data-indexer-se-plugin",
description = "This instance serves smart-executor service with social-data-indexer-se-plugin", description = "This instance serves smart-executor service with social-data-indexer-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
}, },
@ -111,8 +111,8 @@ module "instance_without_data_volume" {
name = "accounting-insert-storage-se-plugin", name = "accounting-insert-storage-se-plugin",
description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin", description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin",
flavor = module.common_variables.flavor_list.c1_small, flavor = module.common_variables.flavor_list.c1_small,
networks = ["d4s-production-cloud-main", module.common_variables.networks_list.orientdb_se], networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], 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],
server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id], server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
} }