Commit graph

71 commits

Author SHA1 Message Date
Michael Scherer
b78d708678 Port vsphere_guest to py3/py2.4 syntax (#3721) 2016-05-23 09:36:24 -04:00
Cheuk Lam
d3097bf580 Added support for accepting extra config options in vm reconfiguration. (#3327) 2016-05-19 17:13:00 +02:00
Michael Fenn
09f14731f2 Support altering the virtual cdrom when state == reconfigured (#2394)
This allows a user to modify the state of the virtual cdrom in a VM
by using the state == reconfigured action.  This is useful for
provisioning VMs from templates which do not have ISO images connected.
2016-04-16 21:49:43 +02:00
Brian Coca
814527fca9 tolerate environment not being set
default will be the same as before, None/null
2016-02-23 12:36:50 -05:00
Brian Coca
d540342984 Merge pull request #3007 from jasonk/vsphere_guest-env-vars
Enable env vars for vsphere_guest
2016-02-23 10:52:10 -05:00
Brian Coca
78f4f8c9bc Merge pull request #2728 from sysreq0/devel
vsphere_guest: Added support for resizing disks when state is 'reconfigured'
2016-02-23 10:47:02 -05:00
Matt Martz
c7845456a6 Various simple linting type cleanups on modules 2016-02-16 15:58:44 -06:00
Jason Kohles
80d8277521 Enable env vars for vsphere_guest
This commit allows the connection information for
the vsphere_guest module to be provided as environment
variables, which makes it possible to use Cloud
Credentials from Ansible Tower in playbooks that utilize
vsphere_guest.

| ENV VAR         | vsphere_guest param    |
| --------------- | ---------------------- |
| VMWARE_HOST     | vcenter_hostname       |
| VMWARE_USER     | username               |
| VMWARE_PASSWORD | password               |
2016-02-10 12:42:44 -05:00
Toshio Kuratomi
f5cdcfa1d9 Make validate_certs for vsphere_guest work with older python2 2016-02-05 13:17:18 -08:00
Stewart Rutledge
c24f758a02 Changed insecure to validate_certs, with a default to true from false (reversing behavior) 2016-02-04 08:16:35 +01:00
Stewart Rutledge
c13efdbd2b Added support for insecure parameter 2016-02-04 08:16:35 +01:00
Brian Coca
94101a7271 Merge pull request #2398 from luto/feature/vsphere_guest/facts_power_status
vsphere_guest: add power status to facts
2016-01-11 18:04:23 -05:00
Sebastien Couture
22b6e6a0ce moved code that gets the vm's current hard drive profile and checks if vm_disk definition count is higher than actual vm drive count out of for loop for efficiency 2016-01-08 17:22:50 -05:00
Sebastien Couture
080b158a29 Added support for resizing disks when state is 'reconfigured' 2015-12-23 15:42:00 -05:00
Charles Paul
5e91c7b4d4 adding no_log to password 2015-12-22 10:01:01 -06:00
Chrrrles Paul
92fd2a9436 Merge pull request #2564 from luto/feature/vsphere_guest/support_nested_folders
vsphere_guest: support putting a guest into a nested folder
2015-12-17 11:47:08 -06:00
Tobias Smolka
0cacadb670 Making cluster parameter optional 2015-12-15 12:45:51 +01:00
Chrrrles Paul
a56d652c7b Merge pull request #2196 from fennm/vmware_clone_to_folder
Support cloning VMs into a specific VM folder
2015-12-11 09:52:42 -05:00
Chrrrles Paul
b4254fe1a4 Merge pull request #2182 from serialdoom/devel
vsphere: automatically add new drives
2015-12-11 09:47:45 -05:00
luto
794911c592 vsphere_guest: support putting a guest into a nested folder 2015-11-27 20:04:20 +01:00
luto
7f01600813 vsphere_guest: when creating a guest, gather facts about it *before* disconnect 2015-11-25 17:14:19 +01:00
Stewart Rutledge
adbc430984 Added support for reconfiguring network (moving to another switch, for example) 2015-11-04 14:22:08 +01:00
luto
d5ed8381b6 vsphere_guest: add power status to facts 2015-11-02 17:48:37 +01:00
Michael Fenn
9b04ca55f1 Support cloning VMs into a specific VM folder
The pysphere VIVirtualMachine.clone() method supports specifying a VM
folder to place the VM in after the clone has completed.  This exposes
that functionality to playbooks.

Also documents that creating VMs could always place VMs in a specific
folder.
2015-10-03 14:31:22 -04:00
Mike
8c9a9c0802 update_disks(): added origins of the code. 2015-10-01 17:38:46 +01:00
Mike Christofilopoulos
83074ad501 add new disks automatically when the 'vm_disk' section changes 2015-10-01 17:29:21 +01:00
Brian Coca
a0997e8940 Merge pull request #1757 from gutoandreollo/devel
Added the 'hw_interfaces' array
2015-09-14 15:08:47 -04:00
Brian Coca
b2e5dd2c47 Merge pull request #1807 from brannon/supportVMClones
Support cloning VMs (in addition to templates)
2015-09-14 14:26:48 -04:00
Charles Paul
6a40e8b454 vm_floppy 2.0 support 2015-09-01 14:53:11 -05:00
Chrrrles Paul
8ebd6cc7cd Revert "Add 2.0 docs - Revert "add virtual floppy to VMware guest"" 2015-09-01 10:55:10 -05:00
Chrrrles Paul
3830af652f Revert "add virtual floppy to VMware guest" 2015-09-01 10:47:43 -05:00
Chrrrles Paul
943a892435 Merge pull request #1720 from nivanko/feature-virtual-floppy
Useful addition to vsphere_guest and the code looks good.  I will do more testing.  Merging into devel branch -- add virtual floppy to VMware guest
2015-09-01 09:26:20 -05:00
Brian Coca
697307f88c Merge pull request #1670 from mikeputnam/issue-1643-gpl-header
Add missing GPLv3 License header
2015-07-30 14:39:44 -04:00
brannon
bf4403d547 Support creating new VMs by cloning an existing VM.
Support setting power state of cloned VMs.
2015-07-25 17:16:10 -07:00
Guto Andreollo
b00fe3e22b Added the 'hw_interfaces' array, listing the names of all interfaces present on the VM as 'ansible_interfaces' lists the ones seen by the operating system 2015-07-20 18:39:31 -03:00
otdw
dd691779a1 removed required together for resource pools, clusters, and template deployments. fixes inability to deploy from template on vsphere clusters without resource pools. Also, resource pools and cluster should not be required together as they are independant in vsphere 2015-07-14 15:56:14 -07:00
Brian Coca
291fef3b34 fixed version added, reworded description a bit 2015-07-14 17:03:21 -04:00
Toshio Kuratomi
e6ecca8809 Minor touch ups of vsphere_guest code. 2015-07-14 07:27:09 -07:00
Toshio Kuratomi
17cd8cddac Merge pull request #739 from NicCOConnor/vsphere_linkedclone
Added the ability to Linked_clone from snapshot in vsphere_guest module
2015-07-14 07:20:38 -07:00
Brian Coca
4d4d63c41e Merge pull request #1403 from aioue/patch-5
Update vsphere_guest.py
2015-07-13 09:58:06 -04:00
Nikolay Ivanko
a24ffc1056 add virtual floppy to VMware guest 2015-07-13 14:31:39 +03:00
Nicholas O'Connor
9144785c42 Created option snapshot_to_clone. When specified, snapshot_to_clone will create a linked clone copy of the VM. 2015-07-09 16:46:39 -04:00
Nic O'Connor
706f5e25cc Added the ability to Linked_clone from snapshot 2015-07-08 15:01:01 -04:00
Tom Paine
d6d6186aef Update vsphere_guest.py 2015-07-07 20:30:33 +01:00
Tom Paine
d9db201b9a Update vsphere_guest.py 2015-07-07 20:30:07 +01:00
Mike Putnam
6c0e264806 Add missing GPLv3 License header
Fixes #1643
2015-07-03 22:57:53 -05:00
Brian Coca
047d7f0775 Merge pull request #1545 from vtsingaras/vsphere_guest_template_no_resourcepool
Use either esxi:dc,host OR cluster,resource_pool
2015-06-19 09:28:56 -04:00
Vyronas Tsingaras
da62d04eff
This enable one to find a datastore with no config_target supplied
Signed-off-by: Vyronas Tsingaras <vtsingaras@it.auth.gr>
2015-06-19 13:04:19 +03:00
Vyronas Tsingaras
5b34f3d8bc Remember power state when starting vm reconfigure
This commit fixes #1391

Signed-off-by: Vyronas Tsingaras <vtsingaras@it.auth.gr>
2015-06-18 21:33:16 +03:00
Vyronas Tsingaras
5e72c5ad36
Properly check if vm_hardware contains keys
This commit fixes #1475

Signed-off-by: Vyronas Tsingaras <vtsingaras@it.auth.gr>
2015-06-18 14:23:43 +03:00