Commit Graph

17 Commits (107c25729350b213134a92a075d4f9db082eefe1)

Author SHA1 Message Date
Rene Moser b5e4edd9f9 cloudstack: cs_template: fix state=extracted
* url arg is optional but we enforced it
* url is in a required together, but args only relevant while registering
2016-12-08 11:34:05 -05:00
Rene Moser 1b99ae4ac1 cloudstack: fix doc, display_text not required 2016-12-08 11:34:05 -05:00
Rene Moser 871f586378 cloudstack: cs_template: fix cross_zones template removal 2016-12-08 11:34:05 -05:00
Rene Moser 51393a0e0f cloudstack: use CS_HYPERVISORS from cloudstack utils 2016-12-08 11:33:51 -05:00
Rene Moser d2db491098 cloudstack: cs_template: implement state=extracted 2016-12-08 11:33:41 -05:00
Rene Moser a134a71187 cloudstack: implement common argument spec handling 2016-12-08 11:33:24 -05:00
Rene Moser d3b680e1c9 cloudstack: fix templates not always have checksums
It is not documented but it seems only registered templates have checksums. Templates created from VMs and snapshot don't.

This change fixes the traceback. But we must re-thinking, if it still makes sense to look for the checksum.
2016-12-08 11:33:18 -05:00
Rene Moser 297312546d cloudstack: add api_region arg
* docs in module_docs_fragments/cloudstack.py
* implemented in module_utils/cloudstack.py -> https://github.com/ansible/ansible/pull/12083
2016-12-08 11:33:16 -05:00
Rene Moser 513739a151 cloudstack: cs_template: add new arg cross_zones 2016-12-08 11:33:14 -05:00
Rene Moser 26652002a4 cloudstack: add Simulator as hypervisor 2016-12-08 11:33:11 -05:00
Rene Moser 7bcbc7819c cloudstack: rename displaytext, displayname to dislplay_... for consistency 2016-12-08 11:33:11 -05:00
Rene Moser 65dc7af166 cloudstack: use new get_result() handling 2016-12-08 11:33:11 -05:00
Rene Moser 41315b2cd9 cloudstack: cs_template: fix state=absent must not need vm, url
only for state=present, fixes example.
2016-12-08 11:33:11 -05:00
Rene Moser 371e67d885 cloudstack: doc fixes 2016-12-08 11:33:08 -05:00
Rene Moser 1aa4d0c2dd cloudstack: update code to match best practice
* Remove catchall exception
* use `if __name__ == '__main__':`
2016-12-08 11:32:56 -05:00
Greg DeKoenigsberg c65a612d1f Changes to author formatting, remove emails 2016-12-08 11:32:51 -05:00
Rene Moser 614caead31 cloudstack: add new module cs_template 2016-12-08 11:32:50 -05:00