89luca89/terrible

target-specific folder tree

Closed this issue · 0 comments

When deploying a new set of VMs on a target hypervisor, we should use a different folder tree for each target, this will preserve terraform states for specific targets.

Example:

~/.ansible-terraform-kvm
    |_ target-uuid_1
           |_ hypervisor_1
                |_ vm1
    |_ target-uuid_2
           |_ hypervisor_1
                |_ vm1

To generate UUID for target hypervisor we could use his URI for example