Rene Moser
ea6fdeb585
cloudstack: add new loadbalancer rule modules
2016-12-08 11:33:29 -05:00
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
Rene Moser
52a40510d7
cloudstack: new module cs_user
2016-12-08 11:33:19 -05:00
Rene Moser
cd39bdd11d
cloudstack: cs_account re-factor error handling state=present
2016-12-08 11:33:18 -05:00
Rene Moser
f84b40e542
cloudstack: cs_account: create account for states locked/disabled/enabled if not present
2016-12-08 11:33:18 -05:00
Rene Moser
497bca48d1
cloudstack: cs_account: add state unlocked as alias for enabled
2016-12-08 11:33:18 -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
badc5298a2
cloudstack: cs_account: fix error handing on state=absent
2016-12-08 11:33:17 -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
513739a151
cloudstack: cs_template: add new arg cross_zones
2016-12-08 11:33:14 -05:00
Rene Moser
19191907c5
cloudstack: cs_domain: rename argument cleanup to clean_up for consistency
2016-12-08 11:33:13 -05:00
Rene Moser
6a70e7d6fb
cloudstack: cs_staticnat: fix wrong class name used
2016-12-08 11:33:13 -05:00
Rene Moser
2f031f13fc
cloudstack: cs_portforward: fix returns for int casting
...
* missing self.
* variable must be named portforwarding_rule, not resource
2016-12-08 11:33:13 -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
b9cf174a8b
cloudstack: cs_network: rename broadcast_domaintype to broadcast_domain_type for consistency
2016-12-08 11:33:11 -05:00
Rene Moser
368b553fd7
cloudstack: cs_security_group_rule: fix typo
2016-12-08 11:33:11 -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
Brian Coca
b0e86d3551
fixes to prevent doc brekage
2016-12-08 11:33:09 -05:00
Rene Moser
cbaa353a87
cloudstack: cs_ip_address: doc style fixes
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
Rene Moser
f4f20c7c20
cloudstack: sync cs_facts with best practices
2016-12-08 11:33:09 -05:00
Rene Moser
728f9fd9fa
cloudstack: cs_network fix zone not in result
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
Darren Worrall
ffbc9d888f
Remove listall
2016-12-08 11:33:09 -05:00
Darren Worrall
b937f9a79c
Param fixes to associateIpAddress
2016-12-08 11:33:09 -05:00
Darren Worrall
e92acede5b
Doc updates
2016-12-08 11:33:08 -05:00
Darren Worrall
6daa6f797c
Fix imports, override get_network and get_ip_address
2016-12-08 11:33:08 -05:00
Darren Worrall
1c052c6f0e
More relevant example
2016-12-08 11:33:08 -05:00
Darren Worrall
3a1720d6f0
Add cs_ip_address module
2016-12-08 11:33:08 -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
70762b0290
cloudstack: new module cs_domain
2016-12-08 11:33:07 -05:00
Rene Moser
81006ab9c3
cloudstack: fix typos in doc
2016-12-08 11:33:04 -05:00
Rene Moser
8492f7e05c
cloudstack: new module cs_staticnat
2016-12-08 11:33:01 -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
743ed1cd82
cloudstack: cs_portforward: fix public_end_port was used for private_end_port
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
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