Create the geonetworks.
This commit is contained in:
parent
272fe6ab34
commit
2119ef9ac2
|
@ -16,7 +16,6 @@ data "terraform_remote_state" "privnet_dns_router" {
|
|||
path = "../project-setup/terraform.tfstate"
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Uses common_variables as module
|
||||
#
|
||||
|
@ -24,16 +23,6 @@ module "common_variables" {
|
|||
source = "../../modules/common_variables"
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Creates the server group "geonetwork"
|
||||
#
|
||||
resource "openstack_compute_servergroup_v2" "geonetwork_server_group" {
|
||||
name = "geonetwork"
|
||||
policies = [module.common_variables.policy_list.soft_anti_affinity]
|
||||
}
|
||||
|
||||
|
||||
module "instance_with_data_volume" {
|
||||
source = "../../modules/instance_with_data_volume"
|
||||
|
||||
|
@ -42,9 +31,9 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-ariadne",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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 = [],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
volume = {
|
||||
name = "geonetwork_ariadne_data_volume",
|
||||
|
@ -56,9 +45,9 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-fisherieatlas",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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 = [],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
volume = {
|
||||
name = "geonetwork_fisherieatlas_data_volume",
|
||||
|
@ -70,9 +59,9 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-grsf",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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 = [],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
volume = {
|
||||
name = "geonetwork_grsf_data_volume",
|
||||
|
@ -85,9 +74,9 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-iotcss3",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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 = [],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
volume = {
|
||||
name = "geonetwork_iotcss3_data_volume",
|
||||
|
@ -99,9 +88,9 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-sdilab",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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 = [],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
volume = {
|
||||
name = "geonetwork_sdilab_data_volume",
|
||||
|
@ -113,10 +102,10 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-spatialdata",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
server_groups_ids = [],
|
||||
volume = {
|
||||
name = "geonetwork_spatialdata_data_volume",
|
||||
size = "20",
|
||||
|
@ -127,10 +116,10 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-wecafcfirms",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
server_groups_ids = [],
|
||||
volume = {
|
||||
name = "geonetwork_wecafcfirms_data_volume",
|
||||
size = "20",
|
||||
|
@ -141,10 +130,10 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-bluecloud",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
server_groups_ids = [],
|
||||
volume = {
|
||||
name = "geonetwork_bluecloud_data_volume",
|
||||
size = "30",
|
||||
|
@ -155,10 +144,10 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-tunaatlas",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
server_groups_ids = [],
|
||||
volume = {
|
||||
name = "geonetwork_tunaatlas_data_volume",
|
||||
size = "20",
|
||||
|
@ -169,10 +158,10 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-globalfisheriesatlas",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m2_small,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
server_groups_ids = [],
|
||||
volume = {
|
||||
name = "geonetwork_globalfisheriesatlas_data_volume",
|
||||
size = "20",
|
||||
|
@ -183,10 +172,10 @@ module "instance_with_data_volume" {
|
|||
name = "geonetwork-prod",
|
||||
description = "This instance serves geonetwork service",
|
||||
flavor = module.common_variables.flavor_list.m1_large,
|
||||
networks = ["d4s-production-cloud-main",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],
|
||||
server_groups_ids = [openstack_compute_servergroup_v2.geonetwork_server_group.id],
|
||||
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name,module.common_variables.networks_list.shared_postgresql],
|
||||
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],
|
||||
image_ref = module.common_variables.ubuntu_1804
|
||||
server_groups_ids = [],
|
||||
volume = {
|
||||
name = "geonetwork_prod_data_volume",
|
||||
size = "40",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue