[ansible-project] Re: vmotion condition

2020-05-20 Thread Mani
Hi David,

Thank you for the info.

On Tuesday, 19 May 2020 18:38:54 UTC+5:30, David Foley wrote:
>
> Hi Mani,
>
>
> Your best bet would be to use PowerCLI, 
> https://communities.vmware.com/thread/539904?start=15=0
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d9a4ac31-f343-49aa-9877-a486243ac108%40googlegroups.com.


[ansible-project] Re: vmotion condition

2020-05-19 Thread David Foley
Hi Mani,


Your best bet would be to use PowerCLI, 
https://communities.vmware.com/thread/539904?start=15=0

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dccf80c7-accd-4d7e-9d9d-92e41e184ef1%40googlegroups.com.


[ansible-project] Re: vmotion condition

2020-05-15 Thread Mani
Can we invoke any script to capture the memory and datastore utilization?

On Thursday, 30 April 2020 00:26:53 UTC+5:30, Mani wrote:
>
> I am trying to perform vmotion of multiple VMs between 2 ESXi hosts using 
> the vmare_vmotion module. We need to set a cap for memory utilization of 
> the destination host to <= 70% and the storage utilization to <= 90%. 
>
> Required result: VMs have to be migrated until the memory and storage 
> utilization has reached. The loop should stop VM migration once the memory 
> & storage threshold has reached.
>
> - name: Perform storage vMotion and host vMotion of virtual machine
>   vmware_vmotion:
> hostname: "{{ running_host }}"
> username: "{{ esxi_user }}"
> password: "{{ esxi_pass }}"
> validate_certs: no
> vm_name: "{{ item.guest_name }}"
> destination_host: "{{ destination_host }}"
> destination_datastore: "{{ item.name }}"
>   delegate_to: localhost
>   with_nested:
> - "{{vm_info.virtual_machines}}"
> - "{{ansible_datastore}}"
>
> Any inputs is highly appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a618aa95-c716-4b3a-a8fe-c16c3ac2d3a6%40googlegroups.com.


[ansible-project] Re: vmotion condition

2020-05-07 Thread Mani
Real-time memory and datastore calculation using the pre-defined module for 
VMware.Please provide if this is achievable in Ansible or not.

Thanks,
Mani

On Thursday, 30 April 2020 00:26:53 UTC+5:30, Mani wrote:
>
> I am trying to perform vmotion of multiple VMs between 2 ESXi hosts using 
> the vmare_vmotion module. We need to set a cap for memory utilization of 
> the destination host to <= 70% and the storage utilization to <= 90%. 
>
> Required result: VMs have to be migrated until the memory and storage 
> utilization has reached. The loop should stop VM migration once the memory 
> & storage threshold has reached.
>
> - name: Perform storage vMotion and host vMotion of virtual machine
>   vmware_vmotion:
> hostname: "{{ running_host }}"
> username: "{{ esxi_user }}"
> password: "{{ esxi_pass }}"
> validate_certs: no
> vm_name: "{{ item.guest_name }}"
> destination_host: "{{ destination_host }}"
> destination_datastore: "{{ item.name }}"
>   delegate_to: localhost
>   with_nested:
> - "{{vm_info.virtual_machines}}"
> - "{{ansible_datastore}}"
>
> Any inputs is highly appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9c299399-230b-4ebf-baf2-d946d63243cb%40googlegroups.com.