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
24b0943eaa
cloudstack: fix user_data gathering, must not be in for loop
2016-12-08 11:32:56 -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
Rene Moser
ee2809d4f4
cloudstack: new module cs_facts
2016-12-08 11:32:52 -05:00
Greg DeKoenigsberg
c65a612d1f
Changes to author formatting, remove emails
2016-12-08 11:32:51 -05:00
Rene Moser
a9449f951e
cloudstack: fix clean_up arg to be boolean in cs_network
2016-12-08 11:32:50 -05:00
Rene Moser
614caead31
cloudstack: add new module cs_template
2016-12-08 11:32:50 -05:00
Rene Moser
ad72afbc40
cloudstack: add new module cs_network
2016-12-08 11:32:49 -05:00
Rene Moser
4da34d198b
cloudstack: remove listall in cs_project
...
listall in cs_project can return the wrong project for root admins, because project name are not unique in separate accounts.
2016-12-08 11:32:49 -05:00
Rene Moser
2c1df46167
cloudstack: fix project name must not be case sensitiv
2016-12-08 11:32:49 -05:00
Brian Coca
74cc1bb624
added missing options:
2016-12-08 11:32:49 -05:00
Rene Moser
22f1cbd21f
cloudstack: add new module cs_project
2016-12-08 11:32:45 -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
62eaec7191
cloudstack: fix examples in cs_iso
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
218c0bce18
cloudstack: update doc of cs_portforward, fixes typos.
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
e26d21648a
cloudstack: fix public and private ports results not int
2016-12-08 11:32:41 -05:00
Rene Moser
2c7542e333
cloudstack: cs_firewall: add egress support
...
Added functionality to set rules for egress using this module at these are very similar. The only real difference is that egress firewall API uses the networkid. That is why the new arguments `type` for choosing `egress` or `ingress` and `network` was added.
For `type=ingress`, which is the default, `ip_address` is required and for `type=egress` the argument `network` is required.
2016-12-08 11:32:41 -05:00
Rene Moser
100ec875d1
cloudstack: cs_iso code style and cleanup
2016-12-08 11:32:40 -05:00
Rene Moser
3cb9e95290
cloudstack: cs_iso: add account and domain
2016-12-08 11:32:40 -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
997ad728ea
cloudstack: cs_affinitygroup: add domain and account support
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
16c6cff529
Update cs_securitygroup.py
2016-12-08 11:32:38 -05:00
Greg DeKoenigsberg
4c2295577a
Update cs_instance.py
2016-12-08 11:32:38 -05:00
Rene Moser
ecbed16300
cloudstack: cs_securitygroup_rule: minor cleanup, DRY
2016-12-08 11:32:37 -05:00
Rene Moser
bbafb7ff45
cloudstack: cs_securitygroup_rule: fix result was not always what expected
2016-12-08 11:32:37 -05:00
Rene Moser
b4fb1fda86
cloudstack: cs_securitygroup_rule: type -> sg_type
2016-12-08 11:32:37 -05:00
Rene Moser
0127628408
cloudstack: cs_firewall: add results
2016-12-08 11:32:37 -05:00
Rene Moser
3dfb068bfd
cloudstack: cs_firewall: add account and domain
2016-12-08 11:32:37 -05:00
Rene Moser
f029d9dda7
cloudstack: add alias `port` in cs_firewall
2016-12-08 11:32:37 -05:00
Rene Moser
4d210048ee
cloudstack: cs_instance: add domain and account
2016-12-08 11:32:37 -05:00
Rene Moser
67f954e35e
cloudstack: cs_vmshapshot: add account and domain
2016-12-08 11:32:37 -05:00
Rene Moser
27753e54c2
cloudstack: cs_sshkeypair: add account and domain support
2016-12-08 11:32:37 -05:00
Rene Moser
b8e5d81099
cloudstack: new cs_portforward module
2016-12-08 11:32:37 -05:00
Rene Moser
ef277ddf0b
cloudstack: add new module cs_account
2016-12-08 11:32:36 -05:00