Commit graph

25 commits

Author SHA1 Message Date
René Moser
039005bfaa cloudstack: cs_firewall: get_network moved to utils, cleanup (#2293) 2016-05-27 20:56:00 +02:00
René Moser
0fa30f8d93 cloudstack, cs_firewall: fix network not found error in return results (#2006)
Only a small issue in results.

In case of type is ingress, we rely on ip address, but in results we also return the network.
Resolving the ip address works without zone params. If the ip address is not located in the default zone and zone param is not set,
the network won't be found because default zone was used for the network query listing.

However since network param is not used for type ingress we skip the return of the network in results.
2016-04-12 18:46:52 +02:00
Rene Moser
99385de340 cloudstack: fixes and improvements
cloudstack: fix python3 support and use type='bool'

cloudstack: cs_instance: update vm on state=restored
2015-12-16 11:09:18 +01:00
Rene Moser
8ec66713d9 cloudstack: fixes and improvements
- cs_affinitygroup: add project support
  Project support in CloudStack for affinity groups is going to be fixed/implemented in the near future, this module should already support.

- cs_affinitygroup:  fix missing returns in doc

- cs_volume: fix disk offering not found

- cs_volume: fix volume not found if created with display_volume=no

- cs_firewall: argument zone is missing, default zone is always used.
  credits for reporting and fixing to @atsaki
  closes #1320

- cs_instance: fix user_data base64 encoding fails if not a string
2015-12-04 09:39:53 +01:00
Rene Moser
faa575afb5 cloudstack: implement common argument spec handling 2015-09-22 18:24:04 +02:00
Rene Moser
52a3d99873 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
2015-08-31 15:55:22 +02:00
Rene Moser
2e52f11dc3 cloudstack: use new get_result() handling 2015-08-17 22:33:59 +02:00
Rene Moser
8e6e9c782b cloudstack: use get_or_fallback() from cloudstack utils 2015-07-19 15:09:49 +02:00
Rene Moser
db33fcf89a cloudstack: update code to match best practice
* Remove catchall exception
* use `if __name__ == '__main__':`
2015-06-28 12:52:05 +02:00
Greg DeKoenigsberg
004dedba8a Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
Rene Moser
53130de662 cloudstack: add choices for api_http_method 2015-06-16 11:33:12 -04:00
Rene Moser
eb66f683f5 cloudstack: add new param api_timeout 2015-06-16 11:33:12 -04:00
Rene Moser
93a1542cc1 cloudstack: improve required params 2015-06-16 11:33:12 -04:00
Rene Moser
2da7792ff6 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.
2015-05-19 09:37:06 +02:00
Rene Moser
0f884ead40 cloudstack: add catch all exceptions and show a user friendly message
Also see GH-493.
2015-05-16 11:55:35 +02:00
Rene Moser
7705d1bb50 cloudstack: remove self.result, is defined in super class from utils 2015-05-16 11:55:35 +02:00
Rene Moser
9f41d78346 cloudstack: avoid logging of secrets 2015-05-16 11:55:35 +02:00
Brian Coca
bceeba224f fix doc parsing by correctly quoting author 2015-05-14 09:19:24 -04:00
Greg DeKoenigsberg
5a064c5b9a Adding author's github id 2015-05-13 14:10:14 -04:00
Rene Moser
24b2b29aba cloudstack: cs_firewall: add results 2015-05-12 23:56:12 +02:00
Rene Moser
5bc3ae040d cloudstack: cs_firewall: add account and domain 2015-05-12 23:45:00 +02:00
Rene Moser
8476fe1d72 cloudstack: add alias port in cs_firewall 2015-05-12 23:45:00 +02:00
Rene Moser
dfa9037091 cloudstack: fix missing doc fragments 2015-05-05 15:57:54 +02:00
Rene Moser
1e744a885a cloudstack: doc fixes 2015-05-05 15:32:06 +02:00
Rene Moser
39d30168a5 cloudstack: rename modules to more meaningful name schema 2015-04-12 12:59:03 +02:00
Renamed from cloud/cloudstack/cloudstack_fw.py (Browse further)