summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils/cloudstack.py
Commit message (Collapse)AuthorAgeFilesLines
* cloudstack: return known used resources in fail_json (#24575)René Moser2017-05-131-24/+34
|
* Python 3 fixes for CloudStack modules and tests. (#24400)Matt Clay2017-05-091-7/+17
|
* cloudstack: implement config overloading and ENV vars for API auth (#22724)René Moser2017-03-171-112/+83
| | | | | | | | | | * cloudstack: fix connection by ENV vars and configs overloading * cloudstack: pep8 cloudstack module_utils * cloudstack: allow api_url to be set in ini config * docsite: explain ENV vars support as written in python-cs for ansible
* cloudstack: cs_instance: revert VPC support (#22629)René Moser2017-03-151-14/+0
| | | Partly reverts 5374c7cd096b72b7998fb9ef0cad11600273b62c
* cloudstack: fix wrong vpc found by name (#22603)René Moser2017-03-141-4/+8
| | | Fail fast if more than one VPC found with given identifier.
* cloudstack: cs_portforward: implement vpc support (#19044)René Moser2017-02-081-0/+4
| | | | | | | | | | | | | | | | | * cloudstack: cs_portforward: implement vpc support * cloudstack: cs_portforward: add vpc and network to returns * cloudstack: cs_portforward: networkid must not be used for rule listing * cloudstack: fail for get_network when vpc but no network name This seem to be a global pattern for get_network, we want to enforce a network name to be set if a vpn param is given. This is used for cs_portforward. * cloudstack: cs_portforward: doc: fix defaults for vpc, network
* Removed dict.iteritems() in several other files.Andrea Tartaglia2016-12-141-3/+3
| | | | This is for py3 compatibility #18506
* cloudstack: utils: fail friendlier if no zones available (#19332)René Moser2016-12-141-0/+3
|
* cloudstack: add helpers to distinguish VMs not in VPC (#18560)René Moser2016-11-201-1/+36
| | | | VMs in VPC and not in VPC can have an identical name. As a result VMs in a VPC must be sorted out if no VPC is given. Due the API limitation, the only way is to check if the network of the VM is in a VPC.
* cloudstack: fix distinguish VPC and other networks (#18515)René Moser2016-11-191-0/+3
|
* cloudstack: extend support for VPC (#18434)René Moser2016-11-141-14/+19
|
* cloudstack: add additional CLOUDSTACK_VPC env var (#18467)René Moser2016-11-111-0/+2
|
* fix iteritems for python 3Daniel Menet2016-11-011-0/+1
|
* cloudstack: implement diff support (#18254)René Moser2016-10-301-5/+18
|
* cloudstack: add support for defining some args as ENV vars (#17946)René Moser2016-10-301-0/+9
| | | | | | | | | These ENV vars are: - CLOUDSTACK_ZONE - CLOUDSTACK_DOMAIN - CLOUDSTACK_ACCOUNT - CLOUDSTACK_PROJECT help to DRY on every task, args still have precedence.
* cloudstack: move common code to module_utils (#17635)René Moser2016-09-191-0/+27
|
* cloudstack: fix has_changed dict values comparsion (#17632)René Moser2016-09-191-1/+11
| | | | | | In some rare situations, the CloudStack API returns string for numbers when we expected int. With this fix, we ensure we compare the types expected.
* cloudstack: handle unicode API results in has_changed (#16601)René Moser2016-07-061-5/+13
| | | | | | * cloudstack: handle unicode API results in has_changed * cloudstack: add more case sensitve keys
* cloudstack: simplify tag handling (#16188)René Moser2016-06-131-15/+3
| | | Fixes tag support in projects.
* cloudstack: add common network codeRene Moser2016-05-241-0/+27
| | | | Also used for VPC support.
* cloudstack: add VPC supportRene Moser2016-05-231-0/+27
|
* cloudstack: fix bug, api_secret always None Rene Moser2016-03-311-1/+1
| | | In case if api args are used, api_secret is None in every cloudstack module.
* cloudstack: add CS_HYPERVISORS constantRene Moser2016-03-011-0/+12
|
* cloudstack: fix case insensitivity Rene Moser2016-01-101-11/+13
| | | | | cloudstack: fix has_change reports changed for case insensitivity values
* cloudstack: change order of tags handling, fixes update of tag value does ↵Rene Moser2015-11-081-1/+1
| | | | not work
* cloudstack: use jop polling in tag handling, fixes outdated tags returned. Rene Moser2015-11-081-2/+3
| | | In some cases the async job did not finish fast enough, causing returning an unexpeded result.
* Add imports for stdlib modules that are used.Toshio Kuratomi2015-11-021-0/+1
| | | | This is cleanup that will aid us when we get ziploader implemented for 2.1
* cloudstack: clean up unneeded ";"Rene Moser2015-11-011-2/+2
|
* Remove mutable default arguments.gduke2015-10-201-1/+3
|
* cloudstack: make tags handling idempotenceRene Moser2015-09-221-38/+37
| | | Credits to @jeffersongirao, who provided the patch.
* cloudstack: add returns_to_int return handling into utilsRene Moser2015-09-221-0/+7
| | | It is not uncommon that the API returns string for int values e.g. ports in listFirewallRules or listPortForwardings,
* cloudstack: common argument_spec and requried_together to utilsRene Moser2015-09-221-0/+12
|
* cloudstack: implement general api_region support, update docsRene Moser2015-08-251-1/+2
|
* cloudstack: rename returns for consistencyRene Moser2015-08-191-2/+2
|
* cloudstack: add more common returnsRene Moser2015-08-171-8/+11
|
* cloudstack: refactor get_result()Rene Moser2015-08-121-11/+31
| | | | | | | * A commen dict of keys has been defined, which we look in results returned from the API. * self.returns dict can be use in subclass to extend this dict. * Optionally the key name can be replaced with a new key name, often used to make the return keys identical to the arguments passed. * Use new style class
* cloudstack: add get_result() in utils to return common resultsRene Moser2015-08-111-0/+15
|
* cloudstack: fix domain name is not unique, use full pathRene Moser2015-06-261-3/+4
|
* cloudstack: add get_or_failback()Rene Moser2015-06-261-0/+8
|
* cloudstack: methods renamingRene Moser2015-06-101-2/+10
|
* cloudstack: remove unused methods used for backward compatibilityRene Moser2015-06-101-25/+0
|
* cloudstack: prevent getting the wrong project.Rene Moser2015-06-091-2/+2
| | | | | Since we use domain and account data to filter the project, listall is not needed and can return the wrong identical named project of another account if root admin permissions are used. Fixed projects names are not case insensitive.
* cloudstack: add timeout to utilsRene Moser2015-06-021-0/+2
|
* cloudstack: fix typo in variable, fixes get_domain()Rene Moser2015-05-081-1/+1
|
* cloudstack: implement account und domain support in utilsRene Moser2015-05-031-2/+14
|
* cloudstack: add get_domain() and get_account() to utilsRene Moser2015-05-031-2/+40
|
* cloudstack: _has_changed() should not compare None valuesRene Moser2015-05-011-0/+4
|
* cloudstack: add tag support in utilsRene Moser2015-04-291-0/+61
|
* cloudstack: get_vm(): fix missing zoneRene Moser2015-04-261-0/+1
| | | | Fixes returning wrong VM having identical name in different zone.
* cloudstack: add method to to get infos of APIRene Moser2015-04-251-0/+9
| | | | | get_capabilities() allows you to get infos e.g. `cloudstackversion` to compare functionality of the API in your modules.