Open smitty42 opened 6 years ago
Comment by verhulstm Tuesday Aug 29, 2017 at 05:09 GMT
the docs on DO work perfectly
https://www.digitalocean.com/community/tutorials/how-to-use-block-storage-on-digitalocean
sudo parted /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01 mklabel gpt sudo parted -a opt /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01 mkpart primary ext4 0% 100% sudo mkfs.ext4 /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01-part1 sudo mkdir -p /mnt/volume-nyc1-01-part1 echo '/dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01-part1 /mnt/volume-nyc1-01-part1 ext4 defaults,nofail,discard 0 2' | sudo tee -a /etc/fstab sudo mount -a
we could just do the above in salt via cmd.run
or maybe this works https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.disk.html
Comment by verhulstm Tuesday Aug 29, 2017 at 06:04 GMT
I think we should use grains to inform a vm what extra blocks disk to use. that way it will be easier to attach block storage on all the providers.
we could make a salt state that reads grains and makes the needed api calls to setup the block disk.
Comment by verhulstm Tuesday Aug 29, 2017 at 06:13 GMT
the creation of new empty block storage on each "rambo up" can be done in the highstate. the attachment of long term storage blocks with data already in them needs to be done in something like the main vagrantfile.
Comment by verhulstm Tuesday Aug 29, 2017 at 17:14 GMT
this command will list the volumes.
curl -X GET -H "Content-Type: application/json" -u "[your api token]:" "https://api.digitalocean.com/v2/volumes?region=nyc1"
Issue by nixjdm Monday Aug 28, 2017 at 22:39 GMT Originally opened as https://github.com/terminal-labs/rambo/issues/72