Fix the mongodb state.

This commit is contained in:
Andrea Dell'Amico 2024-06-27 18:52:34 +02:00
parent 7e16e70be9
commit 380a173632
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
3 changed files with 130 additions and 242 deletions

View File

@ -7,7 +7,7 @@ mongodb_cluster_data = {
image_type_uuid = "75c23040-2be7-49e9-8029-a16dc9f755d1"
}
mongodb_ip = ["10.1.40.22", "10.1.40.23", "10.1.40.24", "10.1.40.25"]
mongodb_ip = ["10.1.40.22", "10.1.40.25", "10.1.40.24", "10.1.40.23"]
mongodb_vol_data = {
name = "mongodb-vol"

File diff suppressed because it is too large Load Diff

View File

@ -68,7 +68,7 @@ resource "openstack_compute_instance_v2" "mongodb_cluster_nodes" {
name = format("%s-%02d", var.mongodb_cluster_data.name, count.index + 2)
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
flavor_name = var.mongodb_cluster_data.flavor
key_pair = module.ssh_settings.ssh_key_file
key_pair = module.ssh_settings.ssh_key_name
security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, openstack_networking_secgroup_v2.mongodb_cluster_traffic.name]
scheduler_hints {
group = openstack_compute_servergroup_v2.mongodb.id