My requiremnt ,
i need to add the disk to vms in vcenter by passing
vm name, datastorename , and disk_size via csv file ,
with the following condition.
- datastore which i am providing the csv should be in facts collected from vms
2.datastore free volume is greater than what we requested (disk_size)
3.after taking the required disk_size the datastore should be greater than equal to 20% of the total size of the datastore .
i can achieve this for the single server but for more than one server i am struggling , can any one help me ,
Working one (for one server )
cat test/diskadditionpre.yaml