terra-farm / terraform-provider-virtualbox

VirtualBox provider for Terraform
https://terra-farm.github.io/provider-virtualbox/
MIT License
323 stars 134 forks source link

virtualbox_disk Resource #119

Open VoyTechnology opened 3 years ago

VoyTechnology commented 3 years ago

The provider at the moment doesn't allow to create additional disks to be attached to the provider. This means that only the images source using the image field can be used, and there is no way to attach your own storage as an additional volume.

Proposal

resource "virtualbox_disk" "disk" {
  name      = "primary_disk"
  format    = "VDI"
  capacity  = "80G"
  flexible  = true
  encrypted = false

  # the following will be the computed properties
  # location = "<base_location>/primary_disk.vdi" # Maybe this will be customisable
  # uuid     = "<computed>"
}

The disk would be then attached to a virtualbox_storage_controller and the storage controller would be attached to the vm itself.

VoyTechnology commented 3 years ago

I am wondering about the consistency in the naming. If its attached to virtualbox_storage_controller, should this resource be called virtualbox_storage?

leodotcloud commented 2 years ago

virtualbox_disk would be easier for a beginner, as it's closer to the VirtualBox UI/UX, rather than learning new terminology?

cdorsman commented 1 year ago

What is the status of this proposal?