Open sverhoeven opened 2 years ago
Ansible tasks could be something like
shell: echo {{ external_volumes }} | jq [0].volume_id | <grep in /dev/disk/by-id/ for right sdXX>
register: home_device
mount:
src: home_device
target: home_dir
We should keep the vagrant build working with 2 extra disks. We probably need a vagrant and src ansible blocks to treat them accordingly.
Define a plugin parameter like
In Ansible a external_volumes variable will be available which is a string. This contains the storage items in the order the user selected it. The external_volumes var will be populated by the SRC system.
To get /home and /dcache-cache mounted from the right storage items we need to map the volume_id to a disk id. For example first volume_id is ddc30b53-105e-4113-9379-c7d3ec9d90e5 then /dev/sdb1 is the first storage item selected.