Fix the mongodb state.
This commit is contained in:
parent
7e16e70be9
commit
380a173632
|
@ -7,7 +7,7 @@ mongodb_cluster_data = {
|
||||||
image_type_uuid = "75c23040-2be7-49e9-8029-a16dc9f755d1"
|
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 = {
|
mongodb_vol_data = {
|
||||||
name = "mongodb-vol"
|
name = "mongodb-vol"
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -68,7 +68,7 @@ resource "openstack_compute_instance_v2" "mongodb_cluster_nodes" {
|
||||||
name = format("%s-%02d", var.mongodb_cluster_data.name, count.index + 2)
|
name = format("%s-%02d", var.mongodb_cluster_data.name, count.index + 2)
|
||||||
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
||||||
flavor_name = var.mongodb_cluster_data.flavor
|
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]
|
security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, openstack_networking_secgroup_v2.mongodb_cluster_traffic.name]
|
||||||
scheduler_hints {
|
scheduler_hints {
|
||||||
group = openstack_compute_servergroup_v2.mongodb.id
|
group = openstack_compute_servergroup_v2.mongodb.id
|
||||||
|
|
Loading…
Reference in New Issue