Commit Graph

81 Commits (3ce496c646e5e3c34e802e7fefecad7bc653aba5)

Author SHA1 Message Date
Joseph Callen 3ce496c646 missing doc fragment 9 years ago
Joseph Callen 0740753255 Resolves issue with vmware_vm_vss_dvs_migrate module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_vm_vss_dvs_migrate module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
- name: Migrate VCSA to vDS
      local_action:
        module: vmware_vm_vss_dvs_migrate
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        vm_name: "{{ hostname }}"
        dvportgroup_name: Management
```

Module Testing
```
ASK [Migrate VCSA to vDS] *****************************************************
task path: /opt/autodeploy/projects/emmet/site_deploy.yml:260
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859 )" )
localhost PUT /tmp/tmpkzD4pF TO /root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/vmware_vm_vss_dvs_migrate
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/vmware_vm_vss_dvs_migrate; rm -rf "/root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/" > /dev/null 2>&1
changed: [foundation-vcsa -> localhost] => {"changed": true, "invocation": {"module_args": {"dvportgroup_name": "Management", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "username": "root", "vm_name": "cscvcatmp001"}, "module_name": "vmware_vm_vss_dvs_migrate"}, "result": null}

```
9 years ago
Daniel Petty a1c2cb0a2e Fix indent 9 years ago
Chrrrles Paul 570869ef48 Merge pull request #1487 from chrrrles/vmware_doc_fragments
use doc fragments
9 years ago
Charles Paul 0ba3d85522 use doc fragments 9 years ago
Toshio Kuratomi d6af6f8477 Update for modules which import json.
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed

Fixes #1298
9 years ago
Charles Paul 6f4aaecb6a adding no_log to password 9 years ago
Matthew Jones c157dbe55a Fix up vsphere_copy after open_url change
* Remove leading module parameter on open_url call as it's no longer used
  by module_utils.urls.open_url
* Force basic auth otherwise vsphere will just return a 401
9 years ago
Chrrrles Paul 0ee578e938 Changing docs to reflect vm_name as the default vm_id_type 9 years ago
Charles Paul 7ded482e6c pep8 whitespace 9 years ago
Charles Paul 51813e0033 upped version added, search by vm_name by default 9 years ago
Ritesh Khadgaray 426e76dddb vmware_vm_shell: add the ability to start program without network connection 9 years ago
Toshio Kuratomi 4bf75fca9f Merge pull request #788 from ansible/open_url-vsphere-copy
Port vsphere_copy from httplib to open_url for TLS cert validation
9 years ago
Charles Paul 51bb65c9a3 reference instance_id in docs, fixes for calls to fail_json 9 years ago
Matt Martz 1a76f4cc22 Fix interpreter line in a few vmware modules 9 years ago
Peter Sprygada 0f90661752 cleaned up vca_vapp module to focus on managing vapps 9 years ago
Chrrrles Paul 6950db5d01 Merge pull request #991 from privateip/vca_nat
updated vca_nat module to use common vca library
9 years ago
Chrrrles Paul 2476fe8325 Merge pull request #992 from privateip/vca_vapp
refactor vca_vapp to use vca common module
9 years ago
Peter Sprygada fedef0c958 refactor vca_vapp to use vca common module 9 years ago
Peter Sprygada 71ecaeb9f0 refactored vca_fw to use vca common module 9 years ago
Peter Sprygada a4f1653b95 updated vca_nat module to use common vca library 9 years ago
Peter Sprygada 356e867721 adds missing serialize_instance function 9 years ago
Toshio Kuratomi 6a3cf63351 correct documentation formatting 9 years ago
Chrrrles Paul 80cae51b16 Merge pull request #873 from jcpowermac/add_vmware_migrate_vmk_module
Merge into extra for further testing and feedback  --  New VMware Module to support migrating vmkernel adapter
9 years ago
Chrrrles Paul f20d10728e Merge pull request #874 from mtnbikenc/add_vmware_target_canonical_facts_module
Merging for further testing / feedback.
9 years ago
Chrrrles Paul 50b3612fef Merge pull request #889 from ansible/revert-884-revert-867-add_vmware_vmkernel_ip_config_module
Merge for real now -- Merge in devel extras for further testing and feedback --  Revert "Revert "New VMware ...
9 years ago
Chrrrles Paul 2ccbc5830e Merge pull request #870 from mtnbikenc/add_vmware_vm_vss_dvs_migrate_module
Merge in devel for further testing, and hopefully discussion with community about future direction for the cloud/vmware modules. -- 

New VMware Module to support migrating a VM from a vSS to a vDS
9 years ago
Chrrrles Paul 2647d2b637 Revert "Revert "New VMware Module to support configuring a VMware vmkernel IP…" 9 years ago
Chrrrles Paul 02e3adf402 Revert "New VMware Module to support configuring a VMware vmkernel IP Address" 9 years ago
Chrrrles Paul 7ef187bbbd Merge pull request #867 from mtnbikenc/add_vmware_vmkernel_ip_config_module
Looks good -- can extend if more customization of virtualnic spec is needed --   New VMware Module to support configuring a VMware vmkernel IP Address
9 years ago
Chrrrles Paul 2c7afe17f0 Merge pull request #869 from jcpowermac/add_vmware_dvswitch_module
Merging for further testing -- New VMware Module to support adding distribute vswitch
9 years ago
Chrrrles Paul e7fbbc8528 Merge pull request #871 from jcpowermac/add_vmware_host_module
New VMware Module to support adding a ESXi host to vCenter
9 years ago
Chrrrles Paul 091bd6b1ff Merge pull request #868 from mtnbikenc/add_vmware_vmkernel_module
Merging for further testing -- New VMware Module to support adding a VMware vmkernel interface
9 years ago
Chrrrles Paul d8197a3b7f Merge pull request #866 from jcpowermac/add_vmware_dvs_portgroup_module
New VMware Module to support adding distributed portgroups -- Looks good to me
9 years ago
Brian Coca c6fe5ced14 Merge pull request #875 from jcpowermac/add_vmware_portgroup_module
New VMware Module to support adding standard portgroups
9 years ago
Brian Coca 3e50a40803 Merge pull request #872 from mtnbikenc/add_vmware_vm_facts_module
New VMware Module to support gathering the list of VMs
9 years ago
Brian Coca 818ff40653 Merge pull request #865 from mtnbikenc/add_vmware_vsan_cluster_module
New VMware Module to support adding a VMware vSAN cluster
9 years ago
Brian Coca 34b6daa843 Merge pull request #864 from jcpowermac/add_vmware_dvs_host_module
New VMware Module to support adding an ESXi host to a distrib switch
9 years ago
Brian Coca 2d66b5708b Merge pull request #863 from mtnbikenc/add_vmware_vswitch_module
New VMware Module to support adding a VMware vSwitch
9 years ago
Joseph Callen 6ca9e7c25f New VMware Module to support adding standard portgroups 9 years ago
Russell Teague c48945c10e Adding vmware_target_canonical_facts module 9 years ago
Joseph Callen 09a6760c51 New VMware Module to support migrating vmkernel adapter 9 years ago
Russell Teague c4b0375eb5 Adding vmware_vm_facts module 9 years ago
Joseph Callen a2e15f07f8 New VMware Module to support adding an ESXi host to vCenter 9 years ago
Russell Teague d5e3bd770a Adding vmware_vm_vss_dvs_migrate module 9 years ago
Russell Teague 72579ab3e1 Adding vmware_vmkernel module 9 years ago
Joseph Callen 7beea8a152 New VMware Module to support adding distribute vswitch 9 years ago
Russell Teague 6fbadff17c Adding vmware_vmkernel_ip_config module 9 years ago
Joseph Callen 6945519411 New VMware Module to support adding distributed portgroups 9 years ago
Russell Teague 9cb1e214cb Adding vmware_vsan_cluster module 9 years ago