Rene Moser
a134a71187
cloudstack: implement common argument spec handling
2016-12-08 11:33:24 -05:00
Rene Moser
57a9af5693
cloudstack: fix redundant security_group return
2016-12-08 11:33:23 -05:00
Darren Worrall
2f2dbaeff7
More doc fixes
2016-12-08 11:33:17 -05:00
Darren Worrall
6c9de090fe
Doc fix
2016-12-08 11:33:16 -05:00
Darren Worrall
7f847cf21f
Use module level validation for params
2016-12-08 11:33:16 -05:00
Darren Worrall
c581d1de8e
Add support for custom service offerings
...
This adds 3 new params: cpu, cpu_speed, and memory, which are required
together.
2016-12-08 11:33:16 -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
e5517fafc1
cloudstack: cs_instance: deploy instance in desired state on state=started/stopped
...
Before this change, an instance must be present for make use of state=stopped/started. Now we are deploying an instance in the desire state if it does not exist.
In this case all args needed to deploy the instance must be passed. However the short form for stopping/starting an _existing_ instance still works as before.
2016-12-08 11:33:14 -05:00
Rene Moser
6f91273fe1
cloudstack: cs_instance: fix ip address may not be set on default nic
2016-12-08 11:33:13 -05:00
Rene Moser
26652002a4
cloudstack: add Simulator as hypervisor
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
Brian Coca
b0e86d3551
fixes to prevent doc brekage
2016-12-08 11:33:09 -05:00
Rene Moser
88488c26ef
cloudstack: cs_instance: use mutually_exlusive of AnsibleModule
2016-12-08 11:33:09 -05:00
Darren Worrall
ab7af801c1
Add alias
2016-12-08 11:33:09 -05:00
Darren Worrall
d115960e03
Api tidy up
2016-12-08 11:33:09 -05:00
Darren Worrall
eb27460d67
Rename param to ip_to_networks
2016-12-08 11:33:09 -05:00
Darren Worrall
0e1b2e5b3a
Add iptonetwork parameter
2016-12-08 11:33:09 -05:00
Milamber
1760c6c670
Add an option to allow the resize of root disk when the instance is created. (need CloudStack 4.4 or +, cloud-initramfs-growroot installed on the template)
...
Signed-off-by: Milamber <milamber@apache.org>
2016-12-08 11:33:09 -05:00
Rene Moser
371e67d885
cloudstack: doc fixes
2016-12-08 11:33:08 -05:00
Rene Moser
ab00c9aacc
cloudstack: fix KeyError: 'public_ip' in cs_instance
2016-12-08 11:33:08 -05:00
Rene Moser
15b6ae8e5c
cloudstack: cs_instance: fix display_name not used in deployment
2016-12-08 11:33:01 -05:00
Rene Moser
1f25377ce9
cloudstack: use get_or_fallback() from cloudstack utils
2016-12-08 11:33:01 -05:00
Rene Moser
7806d3d134
cloudstack: cs_instance: fix missing resource error in check mode if instance is not yet present
2016-12-08 11:32:59 -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
Rene Moser
4020ebaecf
cloudstack: fix state=expunged in cs_instance
2016-12-08 11:32:56 -05:00
Rene Moser
cbfc5a3079
cloudstack: cs_instance do not pass zoneid to listVirtualMachines
...
This change is related to 2 issues;
- The API does not return destroyed VMs if zone ID is passed for CS version < 4.5.2. Also see CLOUDSTACK-8578. This only affects domain and root admins.
- The instance name must be unique across all zones. If we pass the zone ID to find a VM, it will not be found if it is in a different zone but a deployment with the name would fail.
2016-12-08 11:32:56 -05:00
Rene Moser
6fd10bed8f
cloudstack: cleanup cs_instance use param key exlicitly for utils methods
2016-12-08 11:32:56 -05:00
Rene Moser
da3db1bfda
cloudstack: fix cs_instance can not find iso and disk offering if domain is set.
...
This does only affect root admins.
2016-12-08 11:32:56 -05:00
Rene Moser
03a6fc0c56
cloudstack: fix cs_instance hypervisor must be omitted if set on template/iso
...
Fix related to issue reported in PR GH-646
2016-12-08 11:32:54 -05:00
Rene Moser
b1143abbcf
cloudstack: make get_template_or_iso returning a dict for fix GH-646
2016-12-08 11:32:54 -05:00
Greg DeKoenigsberg
c65a612d1f
Changes to author formatting, remove emails
2016-12-08 11:32:51 -05:00
Rene Moser
3cded7d5af
cloudstack: fix doc for cs_instance, force is defaulted to false
2016-12-08 11:32:44 -05:00
Rene Moser
b30fda4906
cloudstack: add choices for api_http_method
2016-12-08 11:32:44 -05:00
Rene Moser
2ca6d151b2
cloudstack: add new param api_timeout
2016-12-08 11:32:44 -05:00
Rene Moser
7bfb24cae5
cloudstack: update doc in cs_instance
2016-12-08 11:32:44 -05:00
Rene Moser
64f9c9fc17
cloudstack: add instance_name alias internal name to returns in cs_instance
2016-12-08 11:32:44 -05:00
Rene Moser
62e062eb34
cs_instance: improve hypervisor argument and return
2016-12-08 11:32:44 -05:00
Rene Moser
30feb9d387
cloudstack: improve required params
2016-12-08 11:32:44 -05:00
Rene Moser
6d1873f330
cloudstack: add catch all exceptions and show a user friendly message
...
Also see GH-493.
2016-12-08 11:32:40 -05:00
Rene Moser
e03827b490
cloudstack: replace old _id() with new generic style from utils
2016-12-08 11:32:40 -05:00
Rene Moser
9ff63f2338
cloudstack: remove self.result, is defined in super class from utils
2016-12-08 11:32:40 -05:00
Rene Moser
10379e19c4
cloudstack: avoid logging of secrets
2016-12-08 11:32:40 -05:00
Brian Coca
c4f52f62f7
fix doc parsing by correctly quoting author
2016-12-08 11:32:39 -05:00
Greg DeKoenigsberg
4c2295577a
Update cs_instance.py
2016-12-08 11:32:38 -05:00
Rene Moser
4d210048ee
cloudstack: cs_instance: add domain and account
2016-12-08 11:32:37 -05:00
Rene Moser
89704a7e38
cloudstack: fix missing doc fragments
2016-12-08 11:32:35 -05:00
Rene Moser
5a2a5b16d5
cloudstack: add new module cs_instance
...
Manages instances and virtual machines
2016-12-08 11:32:35 -05:00