Commit aa1f48cd authored by Chris King's avatar Chris King
Browse files

Removed unused disks; add OSD disks

* Remove erroneous disks from instance configuration
* Utilize dynamic blocks to add adjustable amounts of disks to OSD nodes
parent ea751046
......@@ -45,15 +45,6 @@ resource "openstack_compute_instance_v2" "mgr" {
delete_on_termination = true
}
block_device {
# and the volume to copy to
source_type = "blank"
destination_type = "volume"
volume_size = 10
boot_index = 1
delete_on_termination = true
}
network {
uuid = openstack_networking_network_v2.public_network.id
}
......@@ -88,13 +79,16 @@ resource "openstack_compute_instance_v2" "osd" {
delete_on_termination = true
}
block_device {
# and the volume to copy to
source_type = "blank"
destination_type = "volume"
volume_size = 10
boot_index = 1
delete_on_termination = true
dynamic "block_device" { # JBOD disks
for_each = var.osd_disk_sizes
content {
source_type = "blank"
destination_type = "volume"
volume_size = block_device.value
boot_index = -1
delete_on_termination = true
}
}
network {
......@@ -130,15 +124,6 @@ resource "openstack_compute_instance_v2" "mds" {
delete_on_termination = true
}
block_device {
# and the volume to copy to
source_type = "blank"
destination_type = "volume"
volume_size = 10
boot_index = 1
delete_on_termination = true
}
network {
uuid = openstack_networking_network_v2.public_network.id
}
......
......@@ -61,3 +61,9 @@ variable "sles_ses_reg" {
type = string
description = "code to register for the storage package in SUSE"
}
variable "osd_disk_sizes" {
type = list(number)
default = [8, 8]
description = "Amount and size of disks (in GB) to add to each OSD node. By default, add two 8GB nodes"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment