Added geonetwork Itineris Carbon in production

This commit is contained in:
Giancarlo Panichi 2024-02-05 15:45:20 +01:00
parent 2ee09cda73
commit 6db6c0cc96
1 changed files with 22 additions and 0 deletions

View File

@ -181,6 +181,20 @@ module "instance_with_data_volume" {
size = "40",
device = "/dev/vdb"
}
},
geonetwork_itineris_carbon = {
name = "geonetwork-itineris-carbon",
description = "This instance serves geonetwork service",
flavor = module.common_variables.flavor_list.m2_small,
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, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers],
image_ref = module.common_variables.ubuntu_1804
server_groups_ids = [],
volume = {
name = "geonetwork_itineris_carbon_data_volume",
size = "20",
device = "/dev/vdb"
}
}
}
}
@ -283,6 +297,14 @@ module "dns_records_create" {
ttl = 8600
type = "CNAME"
records = [local.cname_target]
},
geonetwork-itineris-carbon = {
zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id
name = join(".", ["geonetwork-itineris-carbon", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name])
description = "Geonetwork geonetwork-itineris-carbon"
ttl = 8600
type = "CNAME"
records = [local.cname_target]
}
}
}