oracle-terraform-modules / terraform-oci-compute-instance

Terraform Module for creating Oracle Cloud Infrastructure compute instances
https://registry.terraform.io/modules/oracle-terraform-modules/compute-instance/oci/latest
Other
46 stars 62 forks source link

No option to attach and mount the added block volumes #22

Open cosmindev opened 5 years ago

cosmindev commented 5 years ago

I suggest adding the code in the right, optionally, for Linux instances to attach (iSCSI) and mount the optional volumes. Offcourse that we need to consider non-Linux environments and non-iSCSI volumes.

kral2 commented 3 years ago

There is several ways to handle this. The most reliable one may be using the oci daemon which is included in all "platform provided" images.

"Paravirtualized" attachment is the most straightforward and would probably be the first to be added to this module. We will later investigated how to support "iSCSI" attachment in the best way.

glynjackson commented 2 years ago

From what I under stand the oci daemon does not "mount" the volume, you still need to login even with Paravirtualized and mount after instance is created and the volume attached i.e. sudo mount /dev/sdb /mongodb